| { |
| "openapi": "3.0.0", |
| "info": { |
| "title": "Simple API overview", |
| "version": "2.0.0" |
| }, |
| "x-security-type-definitions": { |
| "inherits-from": ["ns"] |
| }, |
| "paths": { |
| "/user": { |
| "x-security-allow": ["pii"], |
| "get": { |
| "operationId": "listVersionsv2", |
| "summary": "List API versions", |
| "x-custom-ext": ["data"], |
| "parameters": [ |
| { |
| "x-security-type": ["ns", 1], |
| "name": "limit", |
| "in": "query", |
| "description": "How many items to return at one time (max 100)", |
| "required": false, |
| "schema": { |
| "type": "integer", |
| "format": "int32" |
| } |
| }, |
| { |
| "x-security-type": [2, "pii"], |
| "name": "phone", |
| "in": "query", |
| "description": "Phone number", |
| "required": false, |
| "schema": { |
| "type": "string" |
| } |
| } |
| ], |
| "responses": { |
| "200": { |
| "description": "200 response", |
| "content": { |
| "application/json": { |
| "examples": { |
| "foo": { |
| "value": { |
| "versions": [ |
| { |
| "status": "CURRENT", |
| "updated": "2011-01-21T11:33:21Z", |
| "id": "v2.0", |
| "links": [ |
| { |
| "href": "http://127.0.0.1:8774/v2/", |
| "rel": "self" |
| } |
| ] |
| }, |
| { |
| "status": "EXPERIMENTAL", |
| "updated": "2013-07-23T11:33:21Z", |
| "id": "v3.0", |
| "links": [ |
| { |
| "href": "http://127.0.0.1:8774/v3/", |
| "rel": "self" |
| } |
| ] |
| } |
| ] |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |