File: stringPathParamResource.yaml

package info (click to toggle)
golang-github-go-openapi-loads 0.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,208 kB
  • sloc: makefile: 4
file content (12 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
description: 'Returns a pet based on ID'
summary: 'Find pet by ID'
operationId: getPetsById
produces:
  - application/json
  - text/html
parameters:
  - {name: petId, in: path, description: 'ID of pet that needs to be fetched', required: true, type: integer, format: int64}
responses:
  '200': {description: fun, schema: {$ref: Pet}}
  '400': {description: 'Invalid ID supplied <= this is purely for documentation', schema: {$ref: ErrorModel}}
  default: {description: 'Unexpected error', schema: {$ref: ErrorModel}}