2019-06-24 17:36:42 -08:00
|
|
|
basePath: '{{.BasePath}}'
|
2019-06-24 22:41:21 -08:00
|
|
|
definitions:
|
2019-06-25 22:31:54 -08:00
|
|
|
account.AccountResponse:
|
2019-06-24 22:41:21 -08:00
|
|
|
properties:
|
|
|
|
address1:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: 221 Tatitlek Ave
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
address2:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: 'Box #1832'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
archived_at:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
2019-06-24 22:41:21 -08:00
|
|
|
billing_user_id:
|
2019-06-25 22:31:54 -08:00
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
city:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: Valdez
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
country:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: USA
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
created_at:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
2019-06-24 22:41:21 -08:00
|
|
|
id:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: c4653bf9-5978-48b7-89c5-95704aebb7e2
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
name:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: Company Name
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
region:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: AK
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
signup_user_id:
|
2019-06-25 22:31:54 -08:00
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
status:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.EnumResponse'
|
|
|
|
type: object
|
2019-06-24 22:41:21 -08:00
|
|
|
timezone:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: America/Anchorage
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
updated_at:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
zipcode:
|
|
|
|
example: "99686"
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
account.AccountUpdateRequest:
|
|
|
|
properties:
|
|
|
|
address1:
|
|
|
|
example: 221 Tatitlek Ave
|
|
|
|
type: string
|
|
|
|
address2:
|
|
|
|
example: 'Box #1832'
|
|
|
|
type: string
|
|
|
|
billing_user_id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
example: Valdez
|
|
|
|
type: string
|
|
|
|
country:
|
|
|
|
example: USA
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
example: c4653bf9-5978-48b7-89c5-95704aebb7e2
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Company Name
|
|
|
|
type: string
|
|
|
|
region:
|
|
|
|
example: AK
|
|
|
|
type: string
|
|
|
|
signup_user_id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
enum:
|
|
|
|
- active
|
|
|
|
- pending
|
|
|
|
- disabled
|
|
|
|
example: disabled
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
|
|
|
zipcode:
|
2019-06-25 02:40:29 -08:00
|
|
|
example: "99686"
|
2019-06-24 22:41:21 -08:00
|
|
|
type: string
|
2019-06-25 22:31:54 -08:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
project.ProjectArchiveRequest:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
example: 985f1746-1d9f-459f-a2d9-fc53ece5ae86
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
project.ProjectCreateRequest:
|
|
|
|
properties:
|
|
|
|
account_id:
|
|
|
|
example: c4653bf9-5978-48b7-89c5-95704aebb7e2
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Rocket Launch
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
enum:
|
|
|
|
- active
|
|
|
|
- disabled
|
|
|
|
example: active
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- account_id
|
|
|
|
- name
|
|
|
|
type: object
|
|
|
|
project.ProjectResponse:
|
|
|
|
properties:
|
|
|
|
account_id:
|
|
|
|
example: c4653bf9-5978-48b7-89c5-95704aebb7e2
|
|
|
|
type: string
|
|
|
|
archived_at:
|
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
created_at:
|
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
id:
|
|
|
|
example: 985f1746-1d9f-459f-a2d9-fc53ece5ae86
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Rocket Launch
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/web.EnumResponse'
|
|
|
|
type: object
|
|
|
|
updated_at:
|
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- account_id
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
type: object
|
|
|
|
project.ProjectUpdateRequest:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
example: 985f1746-1d9f-459f-a2d9-fc53ece5ae86
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Rocket Launch to Moon
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
enum:
|
|
|
|
- active
|
|
|
|
- disabled
|
|
|
|
example: disabled
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
2019-06-24 22:41:21 -08:00
|
|
|
type: object
|
2019-06-25 02:40:29 -08:00
|
|
|
signup.SignupRequest:
|
|
|
|
properties:
|
|
|
|
account:
|
|
|
|
properties:
|
|
|
|
address1:
|
|
|
|
example: 221 Tatitlek Ave
|
|
|
|
type: string
|
|
|
|
address2:
|
|
|
|
example: 'Box #1832'
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
example: Valdez
|
|
|
|
type: string
|
|
|
|
country:
|
|
|
|
example: USA
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Company {RANDOM_UUID}
|
|
|
|
type: string
|
|
|
|
region:
|
|
|
|
example: AK
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
|
|
|
type: string
|
|
|
|
zipcode:
|
|
|
|
example: "99686"
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- address1
|
|
|
|
- city
|
|
|
|
- region
|
|
|
|
- country
|
|
|
|
- zipcode
|
|
|
|
type: object
|
|
|
|
user:
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
example: '{RANDOM_EMAIL}'
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Gabi May
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
example: SecretString
|
|
|
|
type: string
|
|
|
|
password_confirm:
|
|
|
|
example: SecretString
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- email
|
|
|
|
- password
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
signup.SignupResponse:
|
|
|
|
properties:
|
|
|
|
account:
|
2019-06-25 22:31:54 -08:00
|
|
|
type: string
|
2019-06-25 02:40:29 -08:00
|
|
|
user:
|
2019-06-25 22:31:54 -08:00
|
|
|
type: string
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
2019-06-25 06:25:55 -08:00
|
|
|
user.Token:
|
|
|
|
properties:
|
|
|
|
access_token:
|
|
|
|
type: string
|
|
|
|
expiry:
|
|
|
|
type: string
|
|
|
|
token_type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2019-06-25 22:31:54 -08:00
|
|
|
user.UserArchiveRequest:
|
2019-06-25 02:40:29 -08:00
|
|
|
properties:
|
2019-06-25 22:31:54 -08:00
|
|
|
id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
2019-06-25 02:40:29 -08:00
|
|
|
type: string
|
2019-06-25 22:31:54 -08:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
user.UserCreateRequest:
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
example: gabi@geeksinthewoods.com
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Gabi May
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
example: SecretString
|
|
|
|
type: string
|
|
|
|
password_confirm:
|
|
|
|
example: SecretString
|
2019-06-25 02:40:29 -08:00
|
|
|
type: string
|
2019-06-25 22:31:54 -08:00
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- email
|
|
|
|
- name
|
|
|
|
- password
|
|
|
|
type: object
|
|
|
|
user.UserResponse:
|
|
|
|
properties:
|
|
|
|
archived_at:
|
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
created_at:
|
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
2019-06-25 02:40:29 -08:00
|
|
|
email:
|
|
|
|
example: gabi@geeksinthewoods.com
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Gabi May
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
|
|
|
type: string
|
|
|
|
updated_at:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.TimeResponse'
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
user.UserUpdatePasswordRequest:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
example: NeverTellSecret
|
|
|
|
type: string
|
|
|
|
password_confirm:
|
|
|
|
example: NeverTellSecret
|
2019-06-25 02:40:29 -08:00
|
|
|
type: string
|
|
|
|
required:
|
2019-06-25 22:31:54 -08:00
|
|
|
- id
|
|
|
|
- password
|
|
|
|
type: object
|
|
|
|
user.UserUpdateRequest:
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
example: gabi.may@geeksinthewoods.com
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
example: d69bdef7-173f-4d29-b52c-3edc60baf6a2
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
example: Gabi May Not
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
web.EnumOption:
|
|
|
|
properties:
|
|
|
|
selected:
|
|
|
|
example: true
|
|
|
|
type: boolean
|
|
|
|
title:
|
|
|
|
example: Active Etc
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
example: active_etc
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
web.EnumResponse:
|
|
|
|
properties:
|
|
|
|
options:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/web.EnumOption'
|
|
|
|
type: array
|
|
|
|
title:
|
|
|
|
example: Active Etc
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
example: active_etc
|
|
|
|
type: string
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
2019-06-24 22:41:21 -08:00
|
|
|
web.Error:
|
|
|
|
properties:
|
|
|
|
err:
|
|
|
|
type: error
|
|
|
|
fields:
|
|
|
|
items:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.FieldError'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: array
|
|
|
|
status:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2019-06-25 22:31:54 -08:00
|
|
|
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:
|
|
|
|
example: "2019-06-25"
|
|
|
|
type: string
|
|
|
|
kitchen:
|
|
|
|
example: 3:00AM
|
|
|
|
type: string
|
|
|
|
local:
|
|
|
|
example: Tue Jun 25 3:00AM
|
|
|
|
type: string
|
|
|
|
local_date:
|
|
|
|
example: Tue Jun 25
|
|
|
|
type: string
|
|
|
|
now_rel_time:
|
|
|
|
example: 15 hours from now
|
|
|
|
type: string
|
|
|
|
now_time:
|
|
|
|
example: 5 hours ago
|
|
|
|
type: string
|
|
|
|
rfc1123:
|
|
|
|
example: Tue, 25 Jun 2019 03:00:53 AKDT
|
|
|
|
type: string
|
|
|
|
time:
|
|
|
|
example: "03:00:53"
|
|
|
|
type: string
|
|
|
|
timezone:
|
|
|
|
example: America/Anchorage
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
example: "2019-06-25T03:00:53.284-08:00"
|
|
|
|
type: string
|
|
|
|
value_utc:
|
|
|
|
example: "2019-06-25T11:00:53.284Z"
|
|
|
|
type: string
|
|
|
|
type: object
|
2019-06-24 17:36:42 -08:00
|
|
|
host: '{{.Host}}'
|
|
|
|
info:
|
|
|
|
contact:
|
|
|
|
email: support@geeksinthewoods.com
|
|
|
|
name: API Support
|
2019-06-25 02:40:29 -08:00
|
|
|
url: http://example.com/support
|
2019-06-24 17:36:42 -08:00
|
|
|
description: This is a sample server celler server.
|
|
|
|
license:
|
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
2019-06-25 02:40:29 -08:00
|
|
|
termsOfService: http://example.com/terms
|
2019-06-24 17:36:42 -08:00
|
|
|
title: SaaS Example API
|
|
|
|
version: '{{.Version}}'
|
2019-06-24 22:41:21 -08:00
|
|
|
paths:
|
2019-06-25 22:31:54 -08:00
|
|
|
/accounts:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update updates the specified account in the system.
|
|
|
|
parameters:
|
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/account.AccountUpdateRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Update account by ID
|
|
|
|
tags:
|
|
|
|
- account
|
2019-06-24 22:41:21 -08:00
|
|
|
/accounts/{id}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2019-06-25 22:31:54 -08:00
|
|
|
description: Read returns the specified account from the system.
|
2019-06-24 22:41:21 -08:00
|
|
|
parameters:
|
|
|
|
- description: Account ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2019-06-25 06:25:55 -08:00
|
|
|
type: string
|
2019-06-24 22:41:21 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/account.AccountResponse'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-24 22:41:21 -08:00
|
|
|
type: object
|
2019-06-25 06:25:55 -08:00
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
2019-06-25 22:31:54 -08:00
|
|
|
summary: Get account by ID
|
2019-06-25 02:40:29 -08:00
|
|
|
tags:
|
|
|
|
- account
|
2019-06-25 06:25:55 -08:00
|
|
|
/oauth/token:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Token generates an oauth2 accessToken using Basic Auth with a user's
|
|
|
|
email and password.
|
2019-06-25 22:31:54 -08:00
|
|
|
parameters:
|
|
|
|
- description: Scope
|
|
|
|
enum:
|
|
|
|
- user
|
|
|
|
- admin
|
|
|
|
in: query
|
|
|
|
name: scope
|
|
|
|
type: string
|
2019-06-25 06:25:55 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
|
|
|
Token:
|
|
|
|
description: qwerty
|
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.Token'
|
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.Error'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.Error'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.Error'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
summary: Token handles a request to authenticate a user.
|
|
|
|
tags:
|
|
|
|
- user
|
2019-06-25 22:31:54 -08:00
|
|
|
/project:
|
|
|
|
get:
|
2019-06-25 02:40:29 -08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
2019-06-25 22:31:54 -08:00
|
|
|
description: Find returns the existing projects in the system.
|
2019-06-25 02:40:29 -08:00
|
|
|
parameters:
|
2019-06-25 22:31:54 -08:00
|
|
|
- description: 'Filter string, example: name = ''Moon Launch'''
|
|
|
|
in: query
|
|
|
|
name: where
|
|
|
|
type: string
|
|
|
|
- description: 'Order columns separated by comma, example: created_at desc'
|
|
|
|
in: query
|
|
|
|
name: order
|
|
|
|
type: string
|
|
|
|
- description: 'Limit, example: 10'
|
|
|
|
in: query
|
|
|
|
name: limit
|
|
|
|
type: integer
|
|
|
|
- description: 'Offset, example: 20'
|
|
|
|
in: query
|
|
|
|
name: offset
|
|
|
|
type: integer
|
|
|
|
- description: 'Included Archived, example: false'
|
|
|
|
in: query
|
|
|
|
name: included-archived
|
|
|
|
type: boolean
|
2019-06-25 02:40:29 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/project.ProjectResponse'
|
|
|
|
type: array
|
2019-06-25 02:40:29 -08:00
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
2019-06-25 22:31:54 -08:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: List projects
|
2019-06-25 02:40:29 -08:00
|
|
|
tags:
|
2019-06-25 22:31:54 -08:00
|
|
|
- project
|
|
|
|
/projects:
|
|
|
|
patch:
|
2019-06-25 02:40:29 -08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
2019-06-25 22:31:54 -08:00
|
|
|
description: Update updates the specified project in the system.
|
2019-06-25 02:40:29 -08:00
|
|
|
parameters:
|
2019-06-25 22:31:54 -08:00
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
2019-06-25 06:25:55 -08:00
|
|
|
required: true
|
2019-06-25 22:31:54 -08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/project.ProjectUpdateRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Update project by ID
|
|
|
|
tags:
|
|
|
|
- project
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Create inserts a new project into the system.
|
|
|
|
parameters:
|
|
|
|
- description: Project details
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/project.ProjectCreateRequest'
|
|
|
|
type: object
|
2019-06-25 02:40:29 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/project.ProjectResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
2019-06-25 22:31:54 -08:00
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Create new project.
|
|
|
|
tags:
|
|
|
|
- project
|
|
|
|
/projects/{id}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete removes the specified project from the system.
|
|
|
|
parameters:
|
|
|
|
- description: Project ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Delete project by ID
|
|
|
|
tags:
|
|
|
|
- project
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Read returns the specified project from the system.
|
|
|
|
parameters:
|
|
|
|
- description: Project ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/project.ProjectResponse'
|
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Get project by ID.
|
|
|
|
tags:
|
|
|
|
- project
|
|
|
|
/projects/archive:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Archive soft-deletes the specified project from the system.
|
|
|
|
parameters:
|
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/project.ProjectArchiveRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Archive project by ID
|
|
|
|
tags:
|
|
|
|
- project
|
|
|
|
/signup:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Signup creates a new account and user in the system.
|
|
|
|
parameters:
|
|
|
|
- description: Signup details
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/signup.SignupRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/signup.SignupResponse'
|
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
summary: Signup handles new account creation.
|
|
|
|
tags:
|
|
|
|
- signup
|
|
|
|
/users:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Find returns the existing users in the system.
|
|
|
|
parameters:
|
|
|
|
- description: 'Filter string, example: name = ''Company Name'' and email =
|
|
|
|
''gabi.may@geeksinthewoods.com'''
|
|
|
|
in: query
|
|
|
|
name: where
|
|
|
|
type: string
|
|
|
|
- description: 'Order columns separated by comma, example: created_at desc'
|
|
|
|
in: query
|
|
|
|
name: order
|
|
|
|
type: string
|
|
|
|
- description: 'Limit, example: 10'
|
|
|
|
in: query
|
|
|
|
name: limit
|
|
|
|
type: integer
|
|
|
|
- description: 'Offset, example: 20'
|
|
|
|
in: query
|
|
|
|
name: offset
|
|
|
|
type: integer
|
|
|
|
- description: 'Included Archived, example: false'
|
|
|
|
in: query
|
|
|
|
name: included-archived
|
|
|
|
type: boolean
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/user.UserResponse'
|
|
|
|
type: array
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: List users
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update updates the specified user in the system.
|
|
|
|
parameters:
|
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserUpdateRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Update user by ID
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Create inserts a new user into the system.
|
|
|
|
parameters:
|
|
|
|
- description: User details
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserCreateRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserResponse'
|
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Create new user.
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
/users/{id}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete removes the specified user from the system.
|
|
|
|
parameters:
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Delete user by ID
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Read returns the specified user from the system.
|
|
|
|
parameters:
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserResponse'
|
|
|
|
type: object
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Get user by ID
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
/users/archive:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Archive soft-deletes the specified user from the system.
|
|
|
|
parameters:
|
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserArchiveRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Archive user by ID
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
/users/password:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update updates the password for a specified user in the system.
|
|
|
|
parameters:
|
|
|
|
- description: Update fields
|
|
|
|
in: body
|
|
|
|
name: data
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/user.UserUpdatePasswordRequest'
|
|
|
|
type: object
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
|
|
|
summary: Update user password by ID
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
/users/switch-account/{account_id}:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: SwitchAccount updates the auth claims to a new account.
|
|
|
|
parameters:
|
|
|
|
- description: Account ID
|
|
|
|
in: path
|
|
|
|
name: account_id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201": {}
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"403":
|
|
|
|
description: Forbidden
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"404":
|
|
|
|
description: Not Found
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
|
|
|
type: object
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/web.ErrorResponse'
|
2019-06-25 02:40:29 -08:00
|
|
|
type: object
|
2019-06-25 06:25:55 -08:00
|
|
|
security:
|
|
|
|
- OAuth2Password: []
|
2019-06-25 22:31:54 -08:00
|
|
|
summary: Switch account.
|
2019-06-25 02:40:29 -08:00
|
|
|
tags:
|
|
|
|
- user
|
2019-06-24 17:36:42 -08:00
|
|
|
securityDefinitions:
|
2019-06-25 06:25:55 -08:00
|
|
|
BasicAuth:
|
|
|
|
type: basic
|
2019-06-24 17:36:42 -08:00
|
|
|
OAuth2Password:
|
|
|
|
flow: password
|
2019-06-25 06:25:55 -08:00
|
|
|
scopes:
|
2019-06-25 22:31:54 -08:00
|
|
|
admin: ' Grants administrative privileges with role of admin.'
|
|
|
|
user: ' Grants basic privileges with role of user.'
|
2019-06-24 22:41:21 -08:00
|
|
|
tokenUrl: /v1/oauth/token
|
2019-06-24 17:36:42 -08:00
|
|
|
type: oauth2
|
|
|
|
swagger: "2.0"
|