/usr/share/gocode/src/github.com/go-openapi/loads/fixtures/yaml/resources/operations/stringPathParamResource.yaml is in golang-github-go-openapi-loads-dev 0.0~git20160704.0.18441df-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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}}
|