Created
February 12, 2021 14:26
-
-
Save xantiagoma/e800e4746551de90304dfb4849cc4f78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "DOCUMENTATION", | |
"description": "", | |
"termsOfService": "YOUR_TERMS_OF_SERVICE_URL", | |
"contact": { | |
"name": "TEAM", | |
"email": "contact-email@something.io", | |
"url": "mywebsite.io" | |
}, | |
"license": { | |
"name": "Apache 2.0", | |
"url": "https://www.apache.org/licenses/LICENSE-2.0.html" | |
}, | |
"x-generation-date": "02/11/2021 11:29:40 PM" | |
}, | |
"x-strapi-config": { | |
"path": "/documentation", | |
"showGeneratedFiles": true, | |
"generateDefaultResponse": true | |
}, | |
"servers": [ | |
{ | |
"url": "http://localhost:1337", | |
"description": "Development server" | |
}, | |
{ | |
"url": "YOUR_STAGING_SERVER", | |
"description": "Staging server" | |
}, | |
{ | |
"url": "YOUR_PRODUCTION_SERVER", | |
"description": "Production server" | |
} | |
], | |
"externalDocs": { | |
"description": "Find out more", | |
"url": "https://strapi.io/documentation/developer-docs/latest/" | |
}, | |
"security": [ | |
{ | |
"bearerAuth": [] | |
} | |
], | |
"paths": { | |
"/cities": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/City" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/City" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewCity" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/cities/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"parameters": [] | |
} | |
}, | |
"/cities/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/City" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/City" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewCity" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"City" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/configs": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Config" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Config" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewConfig" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/configs/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"parameters": [] | |
} | |
}, | |
"/configs/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Config" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Config" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewConfig" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Config" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/ok": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Unclassified" | |
], | |
"parameters": [] | |
} | |
}, | |
"/countries": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Country" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Country" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewCountry" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/countries/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"parameters": [] | |
} | |
}, | |
"/countries/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Country" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Country" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewCountry" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Country" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/labels": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Label" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Label" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewLabel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/labels/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"parameters": [] | |
} | |
}, | |
"/labels/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Label" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Label" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewLabel" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Label" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/lines": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Line" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Line" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewLine" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/lines/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"parameters": [] | |
} | |
}, | |
"/lines/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Line" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Line" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewLine" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Line" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/pages": { | |
"get": { | |
"deprecated": false, | |
"description": "Find all the pages's records", | |
"responses": { | |
"200": { | |
"description": "Retrieve pages document(s)", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Pages" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new pages record", | |
"responses": { | |
"200": { | |
"description": "Retrieve pages document(s)", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Pages" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewPages" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/pages/count": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve the numver of pages documents", | |
"responses": { | |
"200": { | |
"description": "Retrieve pages document(s)", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"parameters": [] | |
} | |
}, | |
"/pages/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Find one pages record", | |
"responses": { | |
"200": { | |
"description": "Retrieve pages document(s)", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Pages" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a single pages record", | |
"responses": { | |
"200": { | |
"description": "Retrieve pages document(s)", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Pages" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewPages" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a single pages record", | |
"responses": { | |
"200": { | |
"description": "deletes a single pages based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Pages" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/states": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/State" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/State" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewState" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/states/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"parameters": [] | |
} | |
}, | |
"/states/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/State" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/State" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewState" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"State" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/stations": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Station" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Station" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewStation" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/stations/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"parameters": [] | |
} | |
}, | |
"/stations/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Station" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Station" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewStation" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Station" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/systems": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/System" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/System" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewSystem" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/systems/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"count": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"parameters": [] | |
} | |
}, | |
"/systems/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/System" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/System" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewSystem" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"System" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/transport-types": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewTransport-type" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/transport-types/count": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"parameters": [] | |
} | |
}, | |
"/transport-types/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update a record", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewTransport-type" | |
} | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a record", | |
"responses": { | |
"200": { | |
"description": "deletes a single record based on the ID supplied", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Transport-type" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/email/": { | |
"post": { | |
"deprecated": false, | |
"description": "Send an email", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Email - Email" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/upload/": { | |
"post": { | |
"deprecated": false, | |
"description": "Upload a file", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/upload/files/count": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve the total number of uploaded files", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"parameters": [] | |
} | |
}, | |
"/upload/files": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve all file documents", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"parameters": [] | |
} | |
}, | |
"/upload/files/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve a single file depending on its id", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete an uploaded file", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/upload/search/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Search for an uploaded file", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"Upload - File" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/users-permissions/roles/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve a role depending on its id", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsRole" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - Role" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/users-permissions/roles": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve all role documents", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UsersPermissionsRole" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - Role" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
}, | |
"post": { | |
"deprecated": false, | |
"description": "Create a new role", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsRole" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - Role" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewUsersPermissionsRole" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/users-permissions/roles/{role}": { | |
"put": { | |
"deprecated": false, | |
"description": "Update a role", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsRole" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - Role" | |
], | |
"parameters": [ | |
{ | |
"name": "role", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewUsersPermissionsRole" | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete a role", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - Role" | |
], | |
"parameters": [ | |
{ | |
"name": "role", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/users-permissions/search/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Search for users", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
} | |
}, | |
"/connect/*": { | |
"get": { | |
"deprecated": false, | |
"description": "Connect a provider", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [] | |
} | |
}, | |
"/auth/local": { | |
"post": { | |
"deprecated": false, | |
"description": "Login a user using the identifiers email and password", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/auth/local/register": { | |
"post": { | |
"deprecated": false, | |
"description": "Register a new user with the default role", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewUsersPermissionsUser" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/auth/{provider}/callback": { | |
"get": { | |
"deprecated": false, | |
"description": "Successfull redirection after approving a provider", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "provider", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
}, | |
"/auth/forgot-password": { | |
"post": { | |
"deprecated": false, | |
"description": "Send the reset password email link", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/auth/reset-password": { | |
"post": { | |
"deprecated": false, | |
"description": "Reset user password with a code (resetToken)", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/auth/email-confirmation": { | |
"get": { | |
"deprecated": false, | |
"description": "Validate a user account", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [] | |
} | |
}, | |
"/auth/send-email-confirmation": { | |
"post": { | |
"deprecated": false, | |
"description": "Send a confirmation email to user", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/users": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve all user documents", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "_limit", | |
"in": "query", | |
"required": false, | |
"description": "Maximum number of results possible", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_sort", | |
"in": "query", | |
"required": false, | |
"description": "Sort according to a specific field.", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_start", | |
"in": "query", | |
"required": false, | |
"description": "Skip a specific number of entries (especially useful for pagination)", | |
"schema": { | |
"type": "integer" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "=", | |
"in": "query", | |
"required": false, | |
"description": "Get entries that matches exactly your input", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_ne", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are not equals to something", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lt", | |
"in": "query", | |
"required": false, | |
"description": "Get record that are lower than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_lte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are lower than or equal to a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gt", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_gte", | |
"in": "query", | |
"required": false, | |
"description": "Get records that are greater than or equal a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_contains", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_containss", | |
"in": "query", | |
"required": false, | |
"description": "Get records that contains (case sensitive) a value", | |
"schema": { | |
"type": "string" | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_in", | |
"in": "query", | |
"required": false, | |
"description": "Get records that matches any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
}, | |
{ | |
"name": "_nin", | |
"in": "query", | |
"required": false, | |
"description": "Get records that doesn't match any value in the array of values", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"deprecated": false | |
} | |
] | |
} | |
}, | |
"/users/me": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve the logged in user information", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [] | |
} | |
}, | |
"/users/{id}": { | |
"get": { | |
"deprecated": false, | |
"description": "Retrieve a single user depending on his id", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
}, | |
"put": { | |
"deprecated": false, | |
"description": "Update an existing user", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/UsersPermissionsUser" | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"requestBody": { | |
"description": "", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewUsersPermissionsUser" | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"deprecated": false, | |
"description": "Delete an existing user", | |
"responses": { | |
"200": { | |
"description": "response", | |
"content": { | |
"application/json": { | |
"schema": { | |
"properties": { | |
"foo": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not found", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Error" | |
} | |
} | |
} | |
} | |
}, | |
"summary": "", | |
"tags": [ | |
"UsersPermissions - User" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"deprecated": false, | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"City": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"state": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"country": { | |
"type": "string" | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"systems": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
} | |
} | |
}, | |
"NewCity": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"state": { | |
"type": "string" | |
}, | |
"systems": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Config": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"key": { | |
"type": "uid" | |
}, | |
"value": { | |
"type": "object" | |
} | |
} | |
}, | |
"NewConfig": { | |
"properties": { | |
"key": { | |
"type": "uid" | |
}, | |
"value": { | |
"type": "object" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Country": { | |
"required": [ | |
"id", | |
"code" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"states": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"country": { | |
"type": "string" | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid", | |
"maxLength": 2, | |
"minLength": 2 | |
} | |
} | |
}, | |
"NewCountry": { | |
"required": [ | |
"code" | |
], | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"states": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid", | |
"maxLength": 2, | |
"minLength": 2 | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Label": { | |
"required": [ | |
"id", | |
"lang", | |
"key" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"lang": { | |
"type": "string", | |
"default": "en", | |
"enum": [ | |
"aa", | |
"ab", | |
"ae", | |
"af", | |
"ak", | |
"am", | |
"an", | |
"ar", | |
"as", | |
"av", | |
"ay", | |
"az", | |
"ba", | |
"be", | |
"bg", | |
"bh", | |
"bi", | |
"bm", | |
"bn", | |
"bo", | |
"br", | |
"bs", | |
"ca", | |
"ce", | |
"ch", | |
"co", | |
"cr", | |
"cs", | |
"cu", | |
"cv", | |
"cy", | |
"da", | |
"de", | |
"dv", | |
"dz", | |
"ee", | |
"el", | |
"en", | |
"eo", | |
"es", | |
"et", | |
"eu", | |
"fa", | |
"ff", | |
"fi", | |
"fj", | |
"fo", | |
"fr", | |
"fy", | |
"ga", | |
"gd", | |
"gl", | |
"gn", | |
"gu", | |
"gv", | |
"ha", | |
"he", | |
"hi", | |
"ho", | |
"hr", | |
"ht", | |
"hu", | |
"hy", | |
"hz", | |
"ia", | |
"id", | |
"ie", | |
"ig", | |
"ii", | |
"ik", | |
"io", | |
"is", | |
"it", | |
"iu", | |
"ja", | |
"jv", | |
"ka", | |
"kg", | |
"ki", | |
"kj", | |
"kk", | |
"kl", | |
"km", | |
"kn", | |
"ko", | |
"kr", | |
"ks", | |
"ku", | |
"kv", | |
"kw", | |
"ky", | |
"la", | |
"lb", | |
"lg", | |
"li", | |
"ln", | |
"lo", | |
"lt", | |
"lu", | |
"lv", | |
"mg", | |
"mh", | |
"mi", | |
"mk", | |
"ml", | |
"mn", | |
"mr", | |
"ms", | |
"mt", | |
"my", | |
"na", | |
"nb", | |
"nd", | |
"ne", | |
"ng", | |
"nl", | |
"nn", | |
"no", | |
"nr", | |
"nv", | |
"ny", | |
"oc", | |
"oj", | |
"om", | |
"or", | |
"os", | |
"pa", | |
"pi", | |
"pl", | |
"ps", | |
"pt", | |
"qu", | |
"rm", | |
"rn", | |
"ro", | |
"ru", | |
"rw", | |
"sa", | |
"sc", | |
"sd", | |
"se", | |
"sg", | |
"si", | |
"sk", | |
"sl", | |
"sm", | |
"sn", | |
"so", | |
"sq", | |
"sr", | |
"ss", | |
"st", | |
"su", | |
"sv", | |
"sw", | |
"ta", | |
"te", | |
"tg", | |
"th", | |
"ti", | |
"tk", | |
"tl", | |
"tn", | |
"to", | |
"tr", | |
"ts", | |
"tt", | |
"tw", | |
"ty", | |
"ug", | |
"uk", | |
"ur", | |
"uz", | |
"ve", | |
"vi", | |
"vo", | |
"wa", | |
"wo", | |
"xh", | |
"yi", | |
"yo", | |
"za", | |
"zh", | |
"zu" | |
] | |
}, | |
"value": { | |
"type": "object" | |
}, | |
"key": { | |
"type": "string" | |
} | |
} | |
}, | |
"NewLabel": { | |
"required": [ | |
"lang", | |
"key" | |
], | |
"properties": { | |
"lang": { | |
"type": "string", | |
"default": "en", | |
"enum": [ | |
"aa", | |
"ab", | |
"ae", | |
"af", | |
"ak", | |
"am", | |
"an", | |
"ar", | |
"as", | |
"av", | |
"ay", | |
"az", | |
"ba", | |
"be", | |
"bg", | |
"bh", | |
"bi", | |
"bm", | |
"bn", | |
"bo", | |
"br", | |
"bs", | |
"ca", | |
"ce", | |
"ch", | |
"co", | |
"cr", | |
"cs", | |
"cu", | |
"cv", | |
"cy", | |
"da", | |
"de", | |
"dv", | |
"dz", | |
"ee", | |
"el", | |
"en", | |
"eo", | |
"es", | |
"et", | |
"eu", | |
"fa", | |
"ff", | |
"fi", | |
"fj", | |
"fo", | |
"fr", | |
"fy", | |
"ga", | |
"gd", | |
"gl", | |
"gn", | |
"gu", | |
"gv", | |
"ha", | |
"he", | |
"hi", | |
"ho", | |
"hr", | |
"ht", | |
"hu", | |
"hy", | |
"hz", | |
"ia", | |
"id", | |
"ie", | |
"ig", | |
"ii", | |
"ik", | |
"io", | |
"is", | |
"it", | |
"iu", | |
"ja", | |
"jv", | |
"ka", | |
"kg", | |
"ki", | |
"kj", | |
"kk", | |
"kl", | |
"km", | |
"kn", | |
"ko", | |
"kr", | |
"ks", | |
"ku", | |
"kv", | |
"kw", | |
"ky", | |
"la", | |
"lb", | |
"lg", | |
"li", | |
"ln", | |
"lo", | |
"lt", | |
"lu", | |
"lv", | |
"mg", | |
"mh", | |
"mi", | |
"mk", | |
"ml", | |
"mn", | |
"mr", | |
"ms", | |
"mt", | |
"my", | |
"na", | |
"nb", | |
"nd", | |
"ne", | |
"ng", | |
"nl", | |
"nn", | |
"no", | |
"nr", | |
"nv", | |
"ny", | |
"oc", | |
"oj", | |
"om", | |
"or", | |
"os", | |
"pa", | |
"pi", | |
"pl", | |
"ps", | |
"pt", | |
"qu", | |
"rm", | |
"rn", | |
"ro", | |
"ru", | |
"rw", | |
"sa", | |
"sc", | |
"sd", | |
"se", | |
"sg", | |
"si", | |
"sk", | |
"sl", | |
"sm", | |
"sn", | |
"so", | |
"sq", | |
"sr", | |
"ss", | |
"st", | |
"su", | |
"sv", | |
"sw", | |
"ta", | |
"te", | |
"tg", | |
"th", | |
"ti", | |
"tk", | |
"tl", | |
"tn", | |
"to", | |
"tr", | |
"ts", | |
"tt", | |
"tw", | |
"ty", | |
"ug", | |
"uk", | |
"ur", | |
"uz", | |
"ve", | |
"vi", | |
"vo", | |
"wa", | |
"wo", | |
"xh", | |
"yi", | |
"yo", | |
"za", | |
"zh", | |
"zu" | |
] | |
}, | |
"value": { | |
"type": "object" | |
}, | |
"key": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Line": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"system": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"stations": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "component" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"color": { | |
"type": "string", | |
"default": "#000000" | |
}, | |
"transport_types": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"description": { | |
"type": "object", | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"Body": { | |
"type": "string" | |
}, | |
"Extra": { | |
"type": "string" | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"shape": { | |
"type": "string" | |
} | |
} | |
}, | |
"NewLine": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"system": { | |
"type": "string" | |
}, | |
"stations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"color": { | |
"type": "string", | |
"default": "#000000" | |
}, | |
"transport_types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"description": { | |
"type": "object", | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"Body": { | |
"type": "string" | |
}, | |
"Extra": { | |
"type": "string" | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"shape": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Pages": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"title": { | |
"type": "string" | |
}, | |
"content": { | |
"type": "array", | |
"items": { | |
"oneOf": [ | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"images": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id", | |
"name", | |
"hash", | |
"mime", | |
"size", | |
"url", | |
"provider" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"alternativeText": { | |
"type": "string" | |
}, | |
"caption": { | |
"type": "string" | |
}, | |
"width": { | |
"type": "integer" | |
}, | |
"height": { | |
"type": "integer" | |
}, | |
"formats": { | |
"type": "object" | |
}, | |
"hash": { | |
"type": "string" | |
}, | |
"ext": { | |
"type": "string" | |
}, | |
"mime": { | |
"type": "string" | |
}, | |
"size": { | |
"type": "number" | |
}, | |
"url": { | |
"type": "string" | |
}, | |
"previewUrl": { | |
"type": "string" | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"provider_metadata": { | |
"type": "object" | |
}, | |
"related": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
}, | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"image": { | |
"required": [ | |
"id", | |
"name", | |
"hash", | |
"mime", | |
"size", | |
"url", | |
"provider" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"alternativeText": { | |
"type": "string" | |
}, | |
"caption": { | |
"type": "string" | |
}, | |
"width": { | |
"type": "integer" | |
}, | |
"height": { | |
"type": "integer" | |
}, | |
"formats": { | |
"type": "object" | |
}, | |
"hash": { | |
"type": "string" | |
}, | |
"ext": { | |
"type": "string" | |
}, | |
"mime": { | |
"type": "string" | |
}, | |
"size": { | |
"type": "number" | |
}, | |
"url": { | |
"type": "string" | |
}, | |
"previewUrl": { | |
"type": "string" | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"provider_metadata": { | |
"type": "object" | |
}, | |
"related": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
}, | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"tag": { | |
"type": "string" | |
}, | |
"body": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
} | |
] | |
} | |
}, | |
"slug": { | |
"type": "uid" | |
}, | |
"published_at": { | |
"type": "string", | |
"format": "date-time" | |
} | |
} | |
}, | |
"NewPages": { | |
"properties": { | |
"title": { | |
"type": "string" | |
}, | |
"content": { | |
"type": "array", | |
"items": { | |
"oneOf": [ | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"images": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id", | |
"name", | |
"hash", | |
"mime", | |
"size", | |
"url", | |
"provider" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"alternativeText": { | |
"type": "string" | |
}, | |
"caption": { | |
"type": "string" | |
}, | |
"width": { | |
"type": "integer" | |
}, | |
"height": { | |
"type": "integer" | |
}, | |
"formats": { | |
"type": "object" | |
}, | |
"hash": { | |
"type": "string" | |
}, | |
"ext": { | |
"type": "string" | |
}, | |
"mime": { | |
"type": "string" | |
}, | |
"size": { | |
"type": "number" | |
}, | |
"url": { | |
"type": "string" | |
}, | |
"previewUrl": { | |
"type": "string" | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"provider_metadata": { | |
"type": "object" | |
}, | |
"related": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
}, | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"image": { | |
"required": [ | |
"id", | |
"name", | |
"hash", | |
"mime", | |
"size", | |
"url", | |
"provider" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"alternativeText": { | |
"type": "string" | |
}, | |
"caption": { | |
"type": "string" | |
}, | |
"width": { | |
"type": "integer" | |
}, | |
"height": { | |
"type": "integer" | |
}, | |
"formats": { | |
"type": "object" | |
}, | |
"hash": { | |
"type": "string" | |
}, | |
"ext": { | |
"type": "string" | |
}, | |
"mime": { | |
"type": "string" | |
}, | |
"size": { | |
"type": "number" | |
}, | |
"url": { | |
"type": "string" | |
}, | |
"previewUrl": { | |
"type": "string" | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"provider_metadata": { | |
"type": "object" | |
}, | |
"related": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
}, | |
{ | |
"properties": { | |
"__component": { | |
"type": "string", | |
"enum": [ | |
"ui.carousel", | |
"ui.hero", | |
"ui.typography" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"tag": { | |
"type": "string" | |
}, | |
"body": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
} | |
] | |
} | |
}, | |
"slug": { | |
"type": "uid" | |
}, | |
"published_at": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"State": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"country": { | |
"required": [ | |
"id", | |
"code" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"states": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"state": { | |
"type": "string" | |
}, | |
"systems": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
} | |
} | |
}, | |
"NewState": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"country": { | |
"type": "string" | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Station": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "object", | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"latitude": { | |
"type": "number" | |
}, | |
"longitude": { | |
"type": "number" | |
}, | |
"meta": { | |
"type": "object" | |
} | |
} | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"system": { | |
"type": "string" | |
}, | |
"stations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"transport_types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"description": { | |
"type": "component" | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"shape": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
} | |
} | |
}, | |
"NewStation": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "object", | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"latitude": { | |
"type": "number" | |
}, | |
"longitude": { | |
"type": "number" | |
}, | |
"meta": { | |
"type": "object" | |
} | |
} | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"System": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"system": { | |
"type": "string" | |
}, | |
"stations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"transport_types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"description": { | |
"type": "component" | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"shape": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"state": { | |
"type": "string" | |
}, | |
"systems": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
} | |
} | |
}, | |
"NewSystem": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"cities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Transport-type": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"system": { | |
"type": "string" | |
}, | |
"stations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"transport_types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"description": { | |
"type": "component" | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"shape": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"code": { | |
"type": "uid" | |
} | |
} | |
}, | |
"NewTransport-type": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"lines": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"code": { | |
"type": "uid" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"UsersPermissionsRole": { | |
"required": [ | |
"id", | |
"name" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string", | |
"minLength": 3 | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"permissions": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id", | |
"type", | |
"controller", | |
"action", | |
"enabled" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"controller": { | |
"type": "string" | |
}, | |
"action": { | |
"type": "string" | |
}, | |
"enabled": { | |
"type": "boolean" | |
}, | |
"policy": { | |
"type": "string" | |
}, | |
"role": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"users": { | |
"type": "array", | |
"items": { | |
"required": [ | |
"id", | |
"username", | |
"email" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"username": { | |
"type": "string" | |
}, | |
"email": { | |
"type": "string" | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"password": { | |
"type": "string" | |
}, | |
"resetPasswordToken": { | |
"type": "string" | |
}, | |
"confirmationToken": { | |
"type": "string" | |
}, | |
"confirmed": { | |
"type": "boolean" | |
}, | |
"blocked": { | |
"type": "boolean" | |
}, | |
"role": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"NewUsersPermissionsRole": { | |
"required": [ | |
"name" | |
], | |
"properties": { | |
"name": { | |
"type": "string", | |
"minLength": 3 | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"permissions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"users": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"UsersPermissionsUser": { | |
"required": [ | |
"id", | |
"username", | |
"email" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"username": { | |
"type": "string", | |
"minLength": 3 | |
}, | |
"email": { | |
"type": "string", | |
"minLength": 6 | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"confirmed": { | |
"type": "boolean", | |
"default": false | |
}, | |
"blocked": { | |
"type": "boolean", | |
"default": false | |
}, | |
"role": { | |
"required": [ | |
"id", | |
"name" | |
], | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"permissions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"users": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"NewUsersPermissionsUser": { | |
"required": [ | |
"username", | |
"email" | |
], | |
"properties": { | |
"username": { | |
"type": "string", | |
"minLength": 3 | |
}, | |
"email": { | |
"type": "string", | |
"minLength": 6 | |
}, | |
"provider": { | |
"type": "string" | |
}, | |
"password": { | |
"type": "string", | |
"format": "password", | |
"minLength": 6 | |
}, | |
"resetPasswordToken": { | |
"type": "string" | |
}, | |
"confirmationToken": { | |
"type": "string" | |
}, | |
"confirmed": { | |
"type": "boolean", | |
"default": false | |
}, | |
"blocked": { | |
"type": "boolean", | |
"default": false | |
}, | |
"role": { | |
"type": "string" | |
}, | |
"created_by": { | |
"type": "string" | |
}, | |
"updated_by": { | |
"type": "string" | |
} | |
} | |
}, | |
"Error": { | |
"required": [ | |
"code", | |
"message" | |
], | |
"properties": { | |
"code": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"message": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"securitySchemes": { | |
"bearerAuth": { | |
"type": "http", | |
"scheme": "bearer", | |
"bearerFormat": "JWT" | |
} | |
} | |
}, | |
"tags": [ | |
{ | |
"name": "City" | |
}, | |
{ | |
"name": "Config" | |
}, | |
{ | |
"name": "Unclassified" | |
}, | |
{ | |
"name": "Country" | |
}, | |
{ | |
"name": "Label" | |
}, | |
{ | |
"name": "Line" | |
}, | |
{ | |
"name": "Pages" | |
}, | |
{ | |
"name": "State" | |
}, | |
{ | |
"name": "Station" | |
}, | |
{ | |
"name": "System" | |
}, | |
{ | |
"name": "Email - Email" | |
}, | |
{ | |
"name": "Upload - File" | |
}, | |
{ | |
"name": "UsersPermissions - Role" | |
}, | |
{ | |
"name": "UsersPermissions - User" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment