github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/fixtures/goparsing/spec/api_spec_go111.json (about) 1 { 2 "consumes":[ 3 "application/json" 4 ], 5 "produces":[ 6 "application/json" 7 ], 8 "schemes":[ 9 "https" 10 ], 11 "swagger":"2.0", 12 "info":{ 13 "description":"the purpose of this application is to provide an application\nthat is using plain go code to define an API", 14 "title":"API.", 15 "version":"0.0.1" 16 }, 17 "host":"localhost", 18 "paths":{ 19 "/admin/bookings/":{ 20 "get":{ 21 "consumes":[ 22 "application/json" 23 ], 24 "produces":[ 25 "application/json" 26 ], 27 "schemes":[ 28 "http", 29 "https" 30 ], 31 "tags":[ 32 "booking" 33 ], 34 "summary":"Bookings lists all the appointments that have been made on the site.", 35 "deprecated": true, 36 "operationId":"Bookings", 37 "responses":{ 38 "200":{ 39 "$ref":"#/responses/BookingResponse" 40 } 41 } 42 } 43 } 44 }, 45 "definitions":{ 46 "Booking":{ 47 "description":"A Booking in the system", 48 "type":"object", 49 "required":[ 50 "id", 51 "Subject" 52 ], 53 "properties":{ 54 "Subject":{ 55 "description":"Subject the subject of this booking", 56 "type":"string" 57 }, 58 "id":{ 59 "description":"ID the id of the booking", 60 "type":"integer", 61 "format":"int64", 62 "x-go-name":"ID", 63 "readOnly":true 64 } 65 }, 66 "x-go-package":"github.com/go-swagger/scan-repo-boundary/makeplans" 67 }, 68 "Customer":{ 69 "type":"object", 70 "title":"Customer of the site.", 71 "properties":{ 72 "name":{ 73 "type":"string", 74 "x-go-name":"Name" 75 } 76 }, 77 "x-go-package":"github.com/go-swagger/go-swagger/fixtures/goparsing/spec" 78 }, 79 "DateRange":{ 80 "description":"DateRange represents a scheduled appointments time\nDateRange should be in definitions since it's being used in a response", 81 "type":"object", 82 "properties":{ 83 "end":{ 84 "type":"string", 85 "x-go-name":"End" 86 }, 87 "start":{ 88 "type":"string", 89 "x-go-name":"Start" 90 } 91 }, 92 "x-go-package":"github.com/go-swagger/go-swagger/fixtures/goparsing/spec" 93 } 94 }, 95 "responses":{ 96 "BookingResponse":{ 97 "description":"BookingResponse represents a scheduled appointment", 98 "schema":{ 99 "type":"object", 100 "properties":{ 101 "booking":{ 102 "$ref":"#/definitions/Booking" 103 }, 104 "customer":{ 105 "$ref":"#/definitions/Customer" 106 }, 107 "dates":{ 108 "$ref":"#/definitions/DateRange" 109 }, 110 "map": { 111 "type": "object", 112 "additionalProperties": { 113 "type": "string" 114 }, 115 "example": {"key": "value"}, 116 "x-go-name": "Map" 117 }, 118 "slice": { 119 "type": "array", 120 "items": { 121 "type": "integer", 122 "format": "int64" 123 }, 124 "x-go-name": "Slice", 125 "example": [ 126 1, 127 2 128 ] 129 } 130 } 131 } 132 } 133 } 134 }