github.com/AngusLu/go-swagger@v0.28.0/fixtures/goparsing/meta/v4/doc.go (about) 1 // Copyright 2015 go-swagger maintainers 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Package meta Petstore API. 16 // 17 // the purpose of this application is to provide an application 18 // that is using plain go code to define an API 19 // 20 // This should demonstrate all the possible comment annotations 21 // that are available to turn go code into a fully compliant swagger 2.0 spec 22 // TermsOfService: 23 // there are no TOS at this moment, use at your own risk we take no responsibility 24 // Schemes: http, https 25 // Host: localhost 26 // BasePath: /v2 27 // Version: 0.0.1 28 // License: MIT http://opensource.org/licenses/MIT 29 // Contact: John Doe<john.doe@example.com> http://john.doe.com 30 // 31 // Consumes: 32 // - application/json 33 // - application/xml 34 // 35 // Produces: 36 // - application/json 37 // - application/xml 38 // 39 // Extensions: 40 // x-meta-value: value 41 // x-meta-array: 42 // - value1 43 // - value2 44 // x-meta-array-obj: 45 // - name: obj 46 // value: field 47 // 48 // InfoExtensions: 49 // x-info-value: value 50 // x-info-array: 51 // - value1 52 // - value2 53 // x-info-array-obj: 54 // - name: obj 55 // value: field 56 // 57 // Security: 58 // - api_key: 59 // 60 // SecurityDefinitions: 61 // api_key: 62 // type: apiKey 63 // name: KEY 64 // in: header 65 // oauth2: 66 // type: oauth2 67 // authorizationUrl: /oauth2/auth 68 // tokenUrl: /oauth2/token 69 // in: header 70 // scopes: 71 // bla1: foo1 72 // bla2: foo2 73 // flow: accessCode 74 // 75 // swagger:meta 76 package meta