swagger.json

Answer

{
    "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)"
            }
          }
        }
      }
    }
  }

All 2d Questions

Ask your interview questions on 2d

Write Your comment or Questions if you want the answers on 2d from 2d Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---