-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"info": { | ||
"description": "This is the API Specification of the Amazon Hybrid Jobs Handler", | ||
"title": "Amazon Hybrid Jobs Handler API", | ||
"version": "1.0.0" | ||
}, | ||
"license": { | ||
"name": "Apache v2 License" | ||
}, | ||
"paths": { | ||
"/aws-runtime-handler/api/v1.0/generate-hybrid-program": { | ||
"post": { | ||
"responses": { | ||
"default": { | ||
"$ref": "#/components/responses/DEFAULT_ERROR" | ||
} | ||
}, | ||
"summary": "Put hybrid program generation job in queue. Return location of the later result.", | ||
"tags": [ | ||
"aws-runtime" | ||
] | ||
} | ||
}, | ||
"/aws-runtime-handler/api/v1.0/results/{result_id}": { | ||
"get": { | ||
"responses": { | ||
"default": { | ||
"$ref": "#/components/responses/DEFAULT_ERROR" | ||
} | ||
}, | ||
"summary": "Return result when it is available.", | ||
"tags": [ | ||
"aws-runtime" | ||
] | ||
}, | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "result_id", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"/aws-runtime-handler/api/v1.0/uploads/{name}": { | ||
"get": { | ||
"responses": { | ||
"default": { | ||
"$ref": "#/components/responses/DEFAULT_ERROR" | ||
} | ||
}, | ||
"tags": [ | ||
"aws-runtime" | ||
] | ||
}, | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "name", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"/aws-runtime-handler/api/v1.0/hybrid-programs/{name}": { | ||
"get": { | ||
"responses": { | ||
"default": { | ||
"$ref": "#/components/responses/DEFAULT_ERROR" | ||
} | ||
}, | ||
"tags": [ | ||
"aws-runtime" | ||
] | ||
}, | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "name", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"/aws-runtime-handler/api/v1.0/version": { | ||
"get": { | ||
"responses": { | ||
"default": { | ||
"$ref": "#/components/responses/DEFAULT_ERROR" | ||
} | ||
}, | ||
"tags": [ | ||
"aws-runtime" | ||
] | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "aws-runtime", | ||
"description": "Generate Amazon Hybrid Jobs programs" | ||
} | ||
], | ||
"openapi": "3.0.2", | ||
"components": { | ||
"schemas": { | ||
"Error": { | ||
"type": "object", | ||
"properties": { | ||
"errors": { | ||
"type": "object", | ||
"description": "Errors" | ||
}, | ||
"code": { | ||
"type": "integer", | ||
"description": "Error code" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"description": "Error name" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"description": "Error message" | ||
} | ||
} | ||
}, | ||
"PaginationMetadata": { | ||
"type": "object", | ||
"properties": { | ||
"total": { | ||
"type": "integer" | ||
}, | ||
"total_pages": { | ||
"type": "integer" | ||
}, | ||
"first_page": { | ||
"type": "integer" | ||
}, | ||
"last_page": { | ||
"type": "integer" | ||
}, | ||
"page": { | ||
"type": "integer" | ||
}, | ||
"previous_page": { | ||
"type": "integer" | ||
}, | ||
"next_page": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"DEFAULT_ERROR": { | ||
"description": "Default error response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |