2019-06-24 17:36:42 -08:00
|
|
|
basePath: '{{.BasePath}}'
|
2019-06-24 22:41:21 -08:00
|
|
|
definitions:
|
|
|
|
account.Account:
|
|
|
|
properties:
|
|
|
|
address1:
|
|
|
|
type: string
|
|
|
|
address2:
|
|
|
|
type: string
|
|
|
|
archived_at:
|
|
|
|
type: string
|
|
|
|
billing_user_id:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
country:
|
|
|
|
type: string
|
|
|
|
created_at:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
region:
|
|
|
|
type: string
|
|
|
|
signup_user_id:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: AccountStatus
|
|
|
|
timezone:
|
|
|
|
type: string
|
|
|
|
updated_at:
|
|
|
|
type: string
|
|
|
|
zipcode:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
web.Error:
|
|
|
|
properties:
|
|
|
|
err:
|
|
|
|
type: error
|
|
|
|
fields:
|
|
|
|
items:
|
|
|
|
type: FieldError
|
|
|
|
type: array
|
|
|
|
status:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2019-06-24 17:36:42 -08:00
|
|
|
host: '{{.Host}}'
|
|
|
|
info:
|
|
|
|
contact:
|
|
|
|
email: support@geeksinthewoods.com
|
|
|
|
name: API Support
|
2019-06-24 22:41:21 -08:00
|
|
|
url: /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-24 22:41:21 -08:00
|
|
|
termsOfService: /terms
|
2019-06-24 17:36:42 -08:00
|
|
|
title: SaaS Example API
|
|
|
|
version: '{{.Version}}'
|
2019-06-24 22:41:21 -08:00
|
|
|
paths:
|
|
|
|
/accounts/{id}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: get string by ID
|
|
|
|
operationId: get-string-by-int
|
|
|
|
parameters:
|
|
|
|
- description: Account ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
|
|
|
Token:
|
|
|
|
description: qwerty
|
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/account.Account'
|
|
|
|
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
|
|
|
|
summary: Read returns the specified account from the system.
|
2019-06-24 17:36:42 -08:00
|
|
|
securityDefinitions:
|
|
|
|
OAuth2Password:
|
|
|
|
flow: password
|
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"
|