Skip to content

Commit

Permalink
Fleshed out / schema
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Sep 10, 2015
1 parent e26afba commit 5b6e6fc
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,25 @@ paths:
description: Describes the API
schema:
type: object
required:
- message
- links
properties:
message:
type: string
links:
type: object
properties:
search:
$ref: '#/definitions/Endpoint'
annotation:
type: object
properties:
read:
$ref: '#/definitions/Endpoint'
create:
$ref: '#/definitions/Endpoint'
update:
$ref: '#/definitions/Endpoint'
delete:
$ref: '#/definitions/Endpoint'
/search:
get:
summary: Basic search API
Expand Down Expand Up @@ -58,12 +69,27 @@ paths:
items:
$ref: '#/definitions/Annotation'
definitions:
Endpoint:
type: object
required:
- url
- method
properties:
url:
type: string
description: URL of API endpoint
method:
type: string
description: HTTP Method name
desc:
type: string
description: Description of this endpoint's purpose.
Annotation:
type: object
required:
- id
- uri
- target
- user
- url
properties:
id:
type: string
Expand Down

0 comments on commit 5b6e6fc

Please sign in to comment.