Skip to content

Commit

Permalink
Add OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
wederbn committed Jan 30, 2024
1 parent 723e804 commit ac57706
Showing 1 changed file with 177 additions and 0 deletions.
177 changes: 177 additions & 0 deletions openapi.json
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"
}
}
}
}
}
}
}

0 comments on commit ac57706

Please # to comment.