You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
fix api route for app page for docs
This commit is contained in:
@ -1,27 +1,24 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2019-06-27 04:56:45.692511 -0800 AKDT m=+325.727343639
|
||||
// 2019-08-05 19:25:44.265503 -0800 AKDT m=+407.181284601
|
||||
|
||||
package docs
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/alecthomas/template"
|
||||
"github.com/swaggo/swag"
|
||||
)
|
||||
|
||||
var doc = `{
|
||||
"schemes": {{ marshal .Schemes }},
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "This is a sample server celler server.",
|
||||
"description": "{{.Description}}",
|
||||
"title": "SaaS Example API",
|
||||
"termsOfService": "http://example.com/terms",
|
||||
"contact": {
|
||||
"name": "API Support",
|
||||
"url": "http://example.com/support",
|
||||
"email": "support@geeksinthewoods.com"
|
||||
},
|
||||
"contact": {},
|
||||
"license": {
|
||||
"name": "Apache 2.0",
|
||||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
@ -67,21 +64,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -126,21 +123,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -182,21 +179,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -248,7 +245,7 @@ var doc = `{
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -266,21 +263,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -328,28 +325,28 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -389,21 +386,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -445,21 +442,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -504,21 +501,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -555,21 +552,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -612,14 +609,14 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -671,7 +668,7 @@ var doc = `{
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -689,21 +686,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -749,28 +746,28 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -807,21 +804,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -861,21 +858,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -917,27 +914,27 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user_accounts/{id}": {
|
||||
"/user_accounts/{user_id}/{account_id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@ -976,21 +973,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1042,7 +1039,7 @@ var doc = `{
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -1060,14 +1057,14 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1113,21 +1110,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1167,21 +1164,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1223,21 +1220,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1279,21 +1276,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1332,21 +1329,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1391,21 +1388,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1442,21 +1439,21 @@ var doc = `{
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1571,15 +1568,6 @@ var doc = `{
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"pending",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
},
|
||||
"timezone": {
|
||||
"type": "string",
|
||||
"example": "America/Anchorage"
|
||||
@ -1616,14 +1604,6 @@ var doc = `{
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Rocket Launch"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"disabled"
|
||||
],
|
||||
"example": "active"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1678,14 +1658,6 @@ var doc = `{
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Rocket Launch to Moon"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1764,17 +1736,23 @@ var doc = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
"name",
|
||||
"password"
|
||||
"first_name",
|
||||
"last_name",
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"example": "{RANDOM_EMAIL}"
|
||||
},
|
||||
"name": {
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
@ -1792,6 +1770,9 @@ var doc = `{
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"force": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
@ -1802,17 +1783,23 @@ var doc = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
"name",
|
||||
"password"
|
||||
"first_name",
|
||||
"last_name",
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"example": "gabi@geeksinthewoods.com"
|
||||
},
|
||||
"name": {
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
@ -1843,13 +1830,24 @@ var doc = `{
|
||||
"type": "string",
|
||||
"example": "gabi@geeksinthewoods.com"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi"
|
||||
},
|
||||
"gravatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"timezone": {
|
||||
"type": "string",
|
||||
@ -1865,7 +1863,8 @@ var doc = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"password"
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
@ -1892,11 +1891,15 @@ var doc = `{
|
||||
"type": "string",
|
||||
"example": "gabi.may@geeksinthewoods.com"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May Not"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"name": {
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May Not"
|
||||
},
|
||||
@ -1948,15 +1951,6 @@ var doc = `{
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"invited",
|
||||
"disabled"
|
||||
],
|
||||
"example": "active"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
@ -1981,10 +1975,6 @@ var doc = `{
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.TimeResponse"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -2036,21 +2026,32 @@ var doc = `{
|
||||
"user"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"invited",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.EnumMultiResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/web.EnumOption"
|
||||
}
|
||||
},
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"active_etc"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.EnumOption": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -2087,31 +2088,6 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/web.FieldError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.FieldError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.TimeResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -2131,6 +2107,10 @@ var doc = `{
|
||||
"type": "string",
|
||||
"example": "Tue Jun 25"
|
||||
},
|
||||
"local_time": {
|
||||
"type": "string",
|
||||
"example": "3:00AM"
|
||||
},
|
||||
"now_rel_time": {
|
||||
"type": "string",
|
||||
"example": "15 hours from now"
|
||||
@ -2160,6 +2140,49 @@ var doc = `{
|
||||
"example": "2019-06-25T11:00:53.284Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"weberror.ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"details": {
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/weberror.FieldError"
|
||||
}
|
||||
},
|
||||
"stack_trace": {
|
||||
"type": "string"
|
||||
},
|
||||
"status_code": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"weberror.FieldError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"display": {
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
@ -2182,17 +2205,23 @@ type swaggerInfo struct {
|
||||
Version string
|
||||
Host string
|
||||
BasePath string
|
||||
Schemes []string
|
||||
Title string
|
||||
Description string
|
||||
}
|
||||
|
||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||
var SwaggerInfo swaggerInfo
|
||||
var SwaggerInfo = swaggerInfo{Schemes: []string{}}
|
||||
|
||||
type s struct{}
|
||||
|
||||
func (s *s) ReadDoc() string {
|
||||
t, err := template.New("swagger_info").Parse(doc)
|
||||
t, err := template.New("swagger_info").Funcs(template.FuncMap{
|
||||
"marshal": func(v interface{}) string {
|
||||
a, _ := json.Marshal(v)
|
||||
return string(a)
|
||||
},
|
||||
}).Parse(doc)
|
||||
if err != nil {
|
||||
return doc
|
||||
}
|
||||
|
@ -1,14 +1,9 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "This is a sample server celler server.",
|
||||
"description": "{{.Description}}",
|
||||
"title": "SaaS Example API",
|
||||
"termsOfService": "http://example.com/terms",
|
||||
"contact": {
|
||||
"name": "API Support",
|
||||
"url": "http://example.com/support",
|
||||
"email": "support@geeksinthewoods.com"
|
||||
},
|
||||
"contact": {},
|
||||
"license": {
|
||||
"name": "Apache 2.0",
|
||||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
@ -54,21 +49,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -113,21 +108,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -169,21 +164,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -235,7 +230,7 @@
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -253,21 +248,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -315,28 +310,28 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -376,21 +371,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -432,21 +427,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -491,21 +486,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -542,21 +537,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -599,14 +594,14 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -658,7 +653,7 @@
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -676,21 +671,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -736,28 +731,28 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -794,21 +789,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -848,21 +843,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -904,27 +899,27 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user_accounts/{id}": {
|
||||
"/user_accounts/{user_id}/{account_id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@ -963,21 +958,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1029,7 +1024,7 @@
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Included Archived, example: false",
|
||||
"name": "included-archived",
|
||||
"name": "include-archived",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
@ -1047,14 +1042,14 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1100,21 +1095,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1154,21 +1149,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1210,21 +1205,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1266,21 +1261,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1319,21 +1314,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1378,21 +1373,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1429,21 +1424,21 @@
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.ErrorResponse"
|
||||
"$ref": "#/definitions/weberror.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1558,15 +1553,6 @@
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"pending",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
},
|
||||
"timezone": {
|
||||
"type": "string",
|
||||
"example": "America/Anchorage"
|
||||
@ -1603,14 +1589,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Rocket Launch"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"disabled"
|
||||
],
|
||||
"example": "active"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1665,14 +1643,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Rocket Launch to Moon"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1751,17 +1721,23 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
"name",
|
||||
"password"
|
||||
"first_name",
|
||||
"last_name",
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"example": "{RANDOM_EMAIL}"
|
||||
},
|
||||
"name": {
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
@ -1779,6 +1755,9 @@
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"force": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
@ -1789,17 +1768,23 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
"name",
|
||||
"password"
|
||||
"first_name",
|
||||
"last_name",
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"example": "gabi@geeksinthewoods.com"
|
||||
},
|
||||
"name": {
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
@ -1830,13 +1815,24 @@
|
||||
"type": "string",
|
||||
"example": "gabi@geeksinthewoods.com"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi"
|
||||
},
|
||||
"gravatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "May"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May"
|
||||
"example": "Gabi"
|
||||
},
|
||||
"timezone": {
|
||||
"type": "string",
|
||||
@ -1852,7 +1848,8 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"password"
|
||||
"password",
|
||||
"password_confirm"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
@ -1879,11 +1876,15 @@
|
||||
"type": "string",
|
||||
"example": "gabi.may@geeksinthewoods.com"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May Not"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"name": {
|
||||
"last_name": {
|
||||
"type": "string",
|
||||
"example": "Gabi May Not"
|
||||
},
|
||||
@ -1935,15 +1936,6 @@
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"invited",
|
||||
"disabled"
|
||||
],
|
||||
"example": "active"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
@ -1968,10 +1960,6 @@
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/web.TimeResponse"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -2023,21 +2011,32 @@
|
||||
"user"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"active",
|
||||
"invited",
|
||||
"disabled"
|
||||
],
|
||||
"example": "disabled"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"example": "d69bdef7-173f-4d29-b52c-3edc60baf6a2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.EnumMultiResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/web.EnumOption"
|
||||
}
|
||||
},
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"active_etc"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.EnumOption": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -2074,31 +2073,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/web.FieldError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.FieldError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web.TimeResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -2118,6 +2092,10 @@
|
||||
"type": "string",
|
||||
"example": "Tue Jun 25"
|
||||
},
|
||||
"local_time": {
|
||||
"type": "string",
|
||||
"example": "3:00AM"
|
||||
},
|
||||
"now_rel_time": {
|
||||
"type": "string",
|
||||
"example": "15 hours from now"
|
||||
@ -2147,6 +2125,49 @@
|
||||
"example": "2019-06-25T11:00:53.284Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"weberror.ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"details": {
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/weberror.FieldError"
|
||||
}
|
||||
},
|
||||
"stack_trace": {
|
||||
"type": "string"
|
||||
},
|
||||
"status_code": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"weberror.FieldError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"display": {
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"field": {
|
||||
"type": "string"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
|
@ -77,13 +77,6 @@ definitions:
|
||||
signup_user_id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- active
|
||||
- pending
|
||||
- disabled
|
||||
example: disabled
|
||||
type: string
|
||||
timezone:
|
||||
example: America/Anchorage
|
||||
type: string
|
||||
@ -109,12 +102,6 @@ definitions:
|
||||
name:
|
||||
example: Rocket Launch
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- active
|
||||
- disabled
|
||||
example: active
|
||||
type: string
|
||||
required:
|
||||
- account_id
|
||||
- name
|
||||
@ -155,12 +142,6 @@ definitions:
|
||||
name:
|
||||
example: Rocket Launch to Moon
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- active
|
||||
- disabled
|
||||
example: disabled
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
@ -221,8 +202,11 @@ definitions:
|
||||
email:
|
||||
example: '{RANDOM_EMAIL}'
|
||||
type: string
|
||||
name:
|
||||
example: Gabi May
|
||||
first_name:
|
||||
example: Gabi
|
||||
type: string
|
||||
last_name:
|
||||
example: May
|
||||
type: string
|
||||
password:
|
||||
example: SecretString
|
||||
@ -232,11 +216,15 @@ definitions:
|
||||
type: string
|
||||
required:
|
||||
- email
|
||||
- name
|
||||
- first_name
|
||||
- last_name
|
||||
- password
|
||||
- password_confirm
|
||||
type: object
|
||||
user.UserArchiveRequest:
|
||||
properties:
|
||||
force:
|
||||
type: boolean
|
||||
id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
@ -248,8 +236,11 @@ definitions:
|
||||
email:
|
||||
example: gabi@geeksinthewoods.com
|
||||
type: string
|
||||
name:
|
||||
example: Gabi May
|
||||
first_name:
|
||||
example: Gabi
|
||||
type: string
|
||||
last_name:
|
||||
example: May
|
||||
type: string
|
||||
password:
|
||||
example: SecretString
|
||||
@ -262,8 +253,10 @@ definitions:
|
||||
type: string
|
||||
required:
|
||||
- email
|
||||
- name
|
||||
- first_name
|
||||
- last_name
|
||||
- password
|
||||
- password_confirm
|
||||
type: object
|
||||
user.UserResponse:
|
||||
properties:
|
||||
@ -276,11 +269,19 @@ definitions:
|
||||
email:
|
||||
example: gabi@geeksinthewoods.com
|
||||
type: string
|
||||
first_name:
|
||||
example: Gabi
|
||||
type: string
|
||||
gravatar:
|
||||
type: string
|
||||
id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
last_name:
|
||||
example: May
|
||||
type: string
|
||||
name:
|
||||
example: Gabi May
|
||||
example: Gabi
|
||||
type: string
|
||||
timezone:
|
||||
example: America/Anchorage
|
||||
@ -303,16 +304,20 @@ definitions:
|
||||
required:
|
||||
- id
|
||||
- password
|
||||
- password_confirm
|
||||
type: object
|
||||
user.UserUpdateRequest:
|
||||
properties:
|
||||
email:
|
||||
example: gabi.may@geeksinthewoods.com
|
||||
type: string
|
||||
first_name:
|
||||
example: Gabi May Not
|
||||
type: string
|
||||
id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
name:
|
||||
last_name:
|
||||
example: Gabi May Not
|
||||
type: string
|
||||
timezone:
|
||||
@ -347,13 +352,6 @@ definitions:
|
||||
- user
|
||||
type: string
|
||||
type: array
|
||||
status:
|
||||
enum:
|
||||
- active
|
||||
- invited
|
||||
- disabled
|
||||
example: active
|
||||
type: string
|
||||
user_id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
@ -373,9 +371,6 @@ definitions:
|
||||
created_at:
|
||||
$ref: '#/definitions/web.TimeResponse'
|
||||
type: object
|
||||
id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
roles:
|
||||
example:
|
||||
- admin
|
||||
@ -411,13 +406,6 @@ definitions:
|
||||
- user
|
||||
type: string
|
||||
type: array
|
||||
status:
|
||||
enum:
|
||||
- active
|
||||
- invited
|
||||
- disabled
|
||||
example: disabled
|
||||
type: string
|
||||
user_id:
|
||||
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
||||
type: string
|
||||
@ -425,6 +413,19 @@ definitions:
|
||||
- account_id
|
||||
- user_id
|
||||
type: object
|
||||
web.EnumMultiResponse:
|
||||
properties:
|
||||
options:
|
||||
items:
|
||||
$ref: '#/definitions/web.EnumOption'
|
||||
type: array
|
||||
values:
|
||||
example:
|
||||
- active_etc
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
web.EnumOption:
|
||||
properties:
|
||||
selected:
|
||||
@ -450,22 +451,6 @@ definitions:
|
||||
example: active_etc
|
||||
type: string
|
||||
type: object
|
||||
web.ErrorResponse:
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
fields:
|
||||
items:
|
||||
$ref: '#/definitions/web.FieldError'
|
||||
type: array
|
||||
type: object
|
||||
web.FieldError:
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
field:
|
||||
type: string
|
||||
type: object
|
||||
web.TimeResponse:
|
||||
properties:
|
||||
date:
|
||||
@ -480,6 +465,9 @@ definitions:
|
||||
local_date:
|
||||
example: Tue Jun 25
|
||||
type: string
|
||||
local_time:
|
||||
example: 3:00AM
|
||||
type: string
|
||||
now_rel_time:
|
||||
example: 15 hours from now
|
||||
type: string
|
||||
@ -502,17 +490,41 @@ definitions:
|
||||
example: "2019-06-25T11:00:53.284Z"
|
||||
type: string
|
||||
type: object
|
||||
weberror.ErrorResponse:
|
||||
properties:
|
||||
details:
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
fields:
|
||||
items:
|
||||
$ref: '#/definitions/weberror.FieldError'
|
||||
type: array
|
||||
stack_trace:
|
||||
type: string
|
||||
status_code:
|
||||
type: integer
|
||||
type: object
|
||||
weberror.FieldError:
|
||||
properties:
|
||||
display:
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
field:
|
||||
type: string
|
||||
tag:
|
||||
type: string
|
||||
value:
|
||||
type: object
|
||||
type: object
|
||||
host: '{{.Host}}'
|
||||
info:
|
||||
contact:
|
||||
email: support@geeksinthewoods.com
|
||||
name: API Support
|
||||
url: http://example.com/support
|
||||
description: This is a sample server celler server.
|
||||
contact: {}
|
||||
description: '{{.Description}}'
|
||||
license:
|
||||
name: Apache 2.0
|
||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
termsOfService: http://example.com/terms
|
||||
title: SaaS Example API
|
||||
version: '{{.Version}}'
|
||||
paths:
|
||||
@ -536,17 +548,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -575,17 +587,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -613,17 +625,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- BasicAuth: []
|
||||
@ -654,7 +666,7 @@ paths:
|
||||
type: integer
|
||||
- description: 'Included Archived, example: false'
|
||||
in: query
|
||||
name: included-archived
|
||||
name: include-archived
|
||||
type: boolean
|
||||
produces:
|
||||
- application/json
|
||||
@ -668,17 +680,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -705,17 +717,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -745,22 +757,22 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -785,17 +797,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -823,17 +835,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -860,17 +872,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -901,12 +913,12 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
summary: Signup handles new account creation.
|
||||
tags:
|
||||
@ -929,17 +941,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -969,7 +981,7 @@ paths:
|
||||
type: integer
|
||||
- description: 'Included Archived, example: false'
|
||||
in: query
|
||||
name: included-archived
|
||||
name: include-archived
|
||||
type: boolean
|
||||
produces:
|
||||
- application/json
|
||||
@ -983,17 +995,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1019,17 +1031,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1059,29 +1071,29 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
summary: Create new user account.
|
||||
tags:
|
||||
- user_account
|
||||
/user_accounts/{id}:
|
||||
/user_accounts/{user_id}/{account_id}:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
@ -1103,17 +1115,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1140,17 +1152,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1182,7 +1194,7 @@ paths:
|
||||
type: integer
|
||||
- description: 'Included Archived, example: false'
|
||||
in: query
|
||||
name: included-archived
|
||||
name: include-archived
|
||||
type: boolean
|
||||
produces:
|
||||
- application/json
|
||||
@ -1196,12 +1208,12 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1227,17 +1239,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1267,17 +1279,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1302,17 +1314,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1340,17 +1352,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1377,17 +1389,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1414,17 +1426,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
@ -1449,17 +1461,17 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/web.ErrorResponse'
|
||||
$ref: '#/definitions/weberror.ErrorResponse'
|
||||
type: object
|
||||
security:
|
||||
- OAuth2Password: []
|
||||
|
Reference in New Issue
Block a user