File: spec2.yaml

package info (click to toggle)
golang-github-go-openapi-spec 1%3A0.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie, trixie-proposed-updates
  • size: 3,748 kB
  • sloc: makefile: 5
file content (30 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
swagger: "2.0"
info:
  title: Item API
  description: Item API
  version: "1.0.0"
host: item.api.local
basePath: /v1
securityDefinitions:
  key:
    type: apiKey
    name: x-item-token
    in: header
security:
  - key: []
consumes: 
  - application/json
produces:
  - application/json
schemes:
  - http
paths:
  /item:
    get:
      operationId: GetItem
      responses:
        200:
          description: item detail response
          schema:
            "$ref": "item2.yaml"