Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Created September 8, 2016 15:42
Show Gist options
  • Save antoniogarrote/aa462460e341bdb0ab7d75200f7d2c75 to your computer and use it in GitHub Desktop.
Save antoniogarrote/aa462460e341bdb0ab7d75200f7d2c75 to your computer and use it in GitHub Desktop.
#%raml 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_0
mediaType: application/json
/usersServiceCreate:
description: Creates a users
post:
body:
properties:
email: string
name: string
response:
body:
properties:
id: string
/usersServiceList:
description: Lists all Users
post:
response:
body:
type: array:
items:
properties:
id: string
email: string
name: string
/usersServiceDelete:
description: Creates a users
post:
body:
properties:
id: string
/todosServiceCreate:
description: Creates Todos for a user
post:
body:
properties:
user_id: string
todos:
type: array
items:
properties:
title: string
description: string
response:
body:
properties:
id: string
/todosServiceList:
description: Lists all Todos
post:
response:
body:
type: array
items:
properties:
id: string
user_id: string
title: string
description: string
/todosServiceDelete:
description: Deletes todos
post:
body:
id: string[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment