/usr/share/gocode/src/github.com/go-openapi/loads/fixtures/json/resources/operations/operationWithTags.json 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 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | {
"description": "Returns a pet based on ID",
"summary": "Find pet by ID",
"operationId": "getPetsById",
"tags": [ "foo", "bar"],
"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": "a pet to be returned",
"schema": {"$ref": "Pet"}
},
"default": {
"description": "Unexpected error",
"schema": {"$ref": "ErrorModel"}
}
}
}
|