|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- {
- "apiVersion": "1.0.0",
- "swaggerVersion": "1.2",
- "basePath": "http://petstore.swagger.io/api",
- "resourcePath": "/store",
- "produces": [
- "application/json"
- ],
- "apis": [
- {
- "path": "/store/order/{orderId}",
- "operations": [
- {
- "method": "GET",
- "summary": "Find purchase order by ID",
- "notes": "For valid response try integer IDs with value <= 5. Anything above 5 or nonintegers will generate API errors",
- "type": "Order",
- "nickname": "getOrderById",
- "authorizations": {},
- "parameters": [
- {
- "name": "orderId",
- "description": "ID of pet that needs to be fetched",
- "required": true,
- "type": "string",
- "paramType": "path"
- }
- ],
- "responseMessages": [
- {
- "code": 400,
- "message": "Invalid ID supplied"
- },
- {
- "code": 404,
- "message": "Order not found"
- }
- ]
- },
- {
- "method": "DELETE",
- "summary": "Delete purchase order by ID",
- "notes": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
- "type": "void",
- "nickname": "deleteOrder",
- "authorizations": {
- "oauth2": [
- {
- "scope": "test:anything",
- "description": "anything"
- }
- ]
- },
- "parameters": [
- {
- "name": "orderId",
- "description": "ID of the order that needs to be deleted",
- "required": true,
- "type": "string",
- "paramType": "path"
- }
- ],
- "responseMessages": [
- {
- "code": 400,
- "message": "Invalid ID supplied"
- },
- {
- "code": 404,
- "message": "Order not found"
- }
- ]
- }
- ]
- },
- {
- "path": "/store/order",
- "operations": [
- {
- "method": "POST",
- "summary": "Place an order for a pet",
- "notes": "",
- "type": "void",
- "nickname": "placeOrder",
- "authorizations": {
- "oauth2": [
- {
- "scope": "test:anything",
- "description": "anything"
- }
- ]
- },
- "parameters": [
- {
- "name": "body",
- "description": "order placed for purchasing the pet",
- "required": true,
- "type": "Order",
- "paramType": "body"
- }
- ],
- "responseMessages": [
- {
- "code": 400,
- "message": "Invalid order"
- }
- ]
- }
- ]
- }
- ],
- "models": {
- "Order": {
- "id": "Order",
- "description": "an order in the system",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "petId": {
- "type": "integer",
- "format": "int64"
- },
- "quantity": {
- "type": "integer",
- "format": "int32"
- },
- "status": {
- "type": "string",
- "description": "Order Status",
- "enum": [
- "placed",
- " approved",
- " delivered"
- ]
- },
- "shipDate": {
- "type": "string",
- "format": "date-time"
- }
- }
- }
- }
- }
|