Skip to content

Commit

Permalink
Add username_api.raml
Browse files Browse the repository at this point in the history
This raml file describe api specification for username_api

Closes manu-chroma#15
  • Loading branch information
seeeturtle committed Jan 12, 2018
1 parent 06e0120 commit bb9f33b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions username_api.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#%RAML 1.0

title: username-availability API
version: v1
protocols: [ HTTPS ]
baseUri: https://username-availability.herokuapp.com/

types:
statusCode:
type: integer
minimum: 100
maximum: 599
format: int64
Check:
type: object
properties:
avatar?: null | string
possible: boolean
profile?: string
status?: statusCode
url: string
usable: boolean

/check:
/{website}:
/{username}:
get:
description: Retrieve json for result of checking username
responses:
200:
body:
application/json:
type: Check

0 comments on commit bb9f33b

Please sign in to comment.