Skip to content

Instantly share code, notes, and snippets.

@tjwebb
Created September 12, 2015 19:13
Show Gist options
  • Save tjwebb/88fc454a172e0dbe705d to your computer and use it in GitHub Desktop.
Save tjwebb/88fc454a172e0dbe705d to your computer and use it in GitHub Desktop.
Default Sails Swagger API
{
"swagger": "2.0",
"info": {
"title": "sails-swagger",
"description": "Example Sails Swagger Application. Documentation generated by the [sails-swagger](https://github.com/tjwebb/sails-swagger) plugin for [sails.js](http://sailsjs.org).",
"version": "1.0.0",
"contact": {
"name": "Balderdash, Inc.",
"email": "hello@balderdash.io",
"url": "http://www.balderdash.io"
},
"license": {
"name": "MIT"
}
},
"externalDocs": {
"description": "For more documentation on Sails.js and Waterline:",
"url": "http://sailsjs.org"
},
"definitions": {
"passport": {
"properties": {
"protocol": {
"type": "string"
},
"password": {
"type": "string"
},
"provider": {
"type": "string"
},
"identifier": {
"type": "string"
},
"tokens": {
"type": "json"
},
"user": {
"type": "integer"
},
"id": {
"type": "integer"
},
"createdAt": {
"type": "dateTime"
},
"updatedAt": {
"type": "dateTime"
}
}
},
"user": {
"properties": {
"username": {
"type": "string"
},
"email": {
"type": "string"
},
"createdBy": {
"type": "integer"
},
"owner": {
"type": "integer"
},
"id": {
"type": "integer"
},
"createdAt": {
"type": "dateTime"
},
"updatedAt": {
"type": "dateTime"
}
}
},
"criteria": {
"properties": {
"where": {
"type": "json"
},
"blacklist": {
"type": "array"
},
"permission": {
"type": "integer"
},
"id": {
"type": "integer"
},
"createdAt": {
"type": "dateTime"
},
"updatedAt": {
"type": "dateTime"
}
}
},
"model": {
"properties": {
"name": {
"type": "string"
},
"identity": {
"type": "string"
},
"attributes": {
"type": "json"
},
"id": {
"type": "integer"
}
}
},
"permission": {
"properties": {
"model": {
"type": "integer"
},
"action": {
"type": "string"
},
"relation": {
"type": "string"
},
"role": {
"type": "integer"
},
"user": {
"type": "integer"
},
"id": {
"type": "integer"
},
"createdAt": {
"type": "dateTime"
},
"updatedAt": {
"type": "dateTime"
}
}
},
"role": {
"properties": {
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"id": {
"type": "integer"
},
"createdAt": {
"type": "dateTime"
},
"updatedAt": {
"type": "dateTime"
}
}
}
},
"paths": {
"/swagger/doc": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/logout/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/provider/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/callback/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/disconnect/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/create/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/me/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/passports/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/passport"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/passport"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/passport"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/roles/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/permissions/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/industries/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/industry"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/industry"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/industry"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/model/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/model/{parentid}/permissions/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission/{parentid}/criteria/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/criteria"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/criteria"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/criteria"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/role/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/role/{parentid}/users/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/role/{parentid}/permissions/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/swagger/doc/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"put": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"patch": {
"summary": "Update Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"delete": {
"summary": "Destroy Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/logout": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/{provider}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "provider",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/{provider}/callback": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "provider",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/{provider}/{action}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "provider",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "action",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/createdBy/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/user/{parentid}/owner/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/model": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/permission"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission/{parentid}/model/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/model"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission/{parentid}/role/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/permission/{parentid}/user/{id}": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parentid",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/user"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/role": {
"get": {
"summary": "Read Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
},
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/role"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/register": {
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/local": {
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/auth/local/{action}": {
"post": {
"summary": "Create Object(s)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource"
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment