{
"openapi": "3.0.0",
"servers": [
{
"url": "https://virtserver.swaggerhub.com/mrityunjaymukherjee/ResourceManagement/1.0.0"
}
],
"info": {
"description": "This is a Movie Database API",
"version": "1.0.0-oas3",
"title": "Movie Database API",
"contact": {
"email": "mrityunjay.mukherjee@gmail.com"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"tags": [
{
"name": "admins",
"description": "Secured Admin-only calls"
},
{
"name": "developers",
"description": "Operations available to regular developers"
}
],
"paths": {
"/movie": {
"get": {
"tags": [
"developers"
],
"summary": "get Movie",
"operationId": "getMovie",
"description": "By passing in the appropriate options, you can search fornavailable movies in the systemn",
"parameters": [
{
"in": "query",
"name": "searchString",
"description": "pass an optional search string for looking up inventory",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "search results matching criteria",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Movie"
}
}
}
}
},
"400": {
"description": "bad input parameter"
}
}
}
}
},
"components": {
"schemas": {
"Movie": {
"type": "object",
"required": [
"id",
"title",
"year",
"released"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"example": "d290f1ee-6c54-4b01-90e6-d701748f0851"
},
"name": {
"title": "string",
"example": "Hulk"
},
"released": {
"type": "string",
"example": "1966 (USA)"
}
}
}
}
}
}