View Code? Open in Web Editor
NEW
Web / API server for WECS
Home Page: http://wecs.herokuapp.com
Ruby 69.22%
JavaScript 0.95%
CoffeeScript 0.87%
CSS 4.22%
HTML 24.73%
wecs's Introduction
This app is an web service for untitled.
- Create a user
- Method
- URL
- Headers
- Parameters
- user
- email
- name
- password
- password_confirmation
- Example
- Request
- URL
- Headers
- Parameter Body
- {"user": {"email": "[email protected]", "name": "Name", "password": "password", "password_confirmation": "password"}}
- Response
- {"result": "success","user": {"id": 100,"email": "[email protected]","created_at": 2015-05-04T08:27:54.975+09:00","updated_at": 2015-05-04T08:27:54.975+09:00","name": "Name","auth_token": AUTH_TOKEN}}
- Update a user
- Method
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- user
- email
- name
- password
- password_confirmation
- Example
- Request
- URL
- Headers
- Content-Type
- Authorization
- Parameter Body
- {"user": {"email": "[email protected]", "name": "Name", "password": "password", "password_confirmation": "password"}}
- Response
- {"result": "success","user": {"id": 100,"email": "[email protected]","created_at": 2015-05-04T08:27:54.975+09:00","updated_at": 2015-05-04T08:27:54.975+09:00","name": "Name","auth_token": AUTH_TOKEN}
- Delete a user
- Method
- URL
- Headers
- Paramters
- Example
- Sign in
- Method
- URL
- Headers
- Parameters
- Example
- Request
- URL
- Headers
- Parameter Body
- Response
- {"result": "success","user": {"id": 100,"email": "[email protected]","created_at": 2015-05-04T08:27:54.975+09:00","updated_at": 2015-05-04T08:27:54.975+09:00","name": "Name","auth_token": AUTH_TOKEN}
- Sign out
- Method
- URL
- Headers
- Paramters
- Example
- Read all boxes
- Method
- URL
- Headers
- Parameters
- Example
- Request
- Response
- {"result": "success",
"boxes": [{"id": 100,"user_id": 100,"name": "EXAMPLE1","description": "EXAMPLE1","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}},{"id": 101,"user_id": 101,"name": "EXAMPLE2","description": "EXAMPLE2","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}},{"id": 102,"user_id": 102,"name": "EXAMPLE3","description": "EXAMPLE3","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}]}
- Read a box
- Method
- URL
- Headers
- Paramters
- Example
- Request
- Response
- {"result": "success","box": {"id": 100,"user_id": 100,"name": "EXAMPLE","description": "EXAMPLE","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}}
- Create a box
- Method
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- Example
- Request
- URL
- Headers
- Content-Type
- Authorization
- Parameter Body
- {"box":{"name":"EXAMPLE", "description":"EXAMPLE"}}
- Response
- {"result": "success","box": {"id": 100,"user_id": 100,"name": "EXAMPLE","description": "EXAMPLE","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}}
- Update a box
- Method
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- Example
- Request
- URL
- Headers
- Content-Type
- Authorization
- Parameter Body
- {"box":{"name":"EXAMPLE", "description":"EXAMPLE"}}
- Response
- {"result": "success","box": {"id": 100,"user_id": 100,"name": "EXAMPLE","description": "EXAMPLE","created_at": "2015-05-23T18:00:32.589Z","updated_at": "2015-05-23T18:00:32.589Z"}}
- Delete a box
- Method
- URL
- Headers
- Paramters
- Example
wecs's People
Contributors
Watchers