{ "swagger": "2.0", "info": { "title": "route.proto", "version": "version not set" }, "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/v1/routes": { "get": { "operationId": "GetAll", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeGetAllRoutesResponse" } } }, "tags": [ "Routes" ] }, "post": { "operationId": "Put", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeIDResponse" } } }, "tags": [ "Routes" ] } }, "/v1/routes/{host}": { "get": { "operationId": "Get", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeRoute" } } }, "parameters": [ { "name": "host", "in": "path", "required": true, "type": "string" } ], "tags": [ "Routes" ] }, "delete": { "operationId": "Delete", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeIDResponse" } } }, "parameters": [ { "name": "host", "in": "path", "required": true, "type": "string" } ], "tags": [ "Routes" ] } }, "/v1/tokens": { "get": { "operationId": "GetAll", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeTokenSet" } } }, "tags": [ "Tokens" ] }, "delete": { "operationId": "Delete", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeNil" } } }, "tags": [ "Tokens" ] }, "post": { "operationId": "Put", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeToken" } } }, "tags": [ "Tokens" ] } }, "/v1/tokens/deactivate": { "post": { "operationId": "Deactivate", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeNil" } } }, "tags": [ "Tokens" ] } }, "/v1/tokens/one": { "get": { "operationId": "Get", "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/routeToken" } } }, "parameters": [ { "name": "token", "in": "query", "required": false, "type": "string" }, { "name": "id", "in": "query", "required": false, "type": "string" } ], "tags": [ "Tokens" ] } } }, "definitions": { "routeGetAllRoutesResponse": { "type": "object", "properties": { "routes": { "type": "array", "items": { "$ref": "#/definitions/routeRoute" } } } }, "routeGetRouteRequest": { "type": "object", "properties": { "host": { "type": "string" } } }, "routeGetTokenRequest": { "type": "object", "properties": { "token": { "type": "string" }, "id": { "type": "string" } } }, "routeIDResponse": { "type": "object", "properties": { "id": { "type": "string" } } }, "routeNil": { "type": "object" }, "routeRoute": { "type": "object", "properties": { "id": { "type": "string" }, "creator": { "type": "string" }, "host": { "type": "string" } } }, "routeToken": { "type": "object", "properties": { "id": { "type": "string" }, "body": { "type": "string" }, "scopes": { "type": "array", "items": { "type": "string" } }, "active": { "type": "boolean", "format": "boolean" } } }, "routeTokenSet": { "type": "object", "properties": { "tokens": { "type": "array", "items": { "$ref": "#/definitions/routeToken" } } } } } }