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