Talk on server with Rails
This app is an web service for Talk on.
API
Users
- Read all users
- Method
- GET
- URL
- Headers
- None
- Parameters
- None
- Example
- Request
- Response
- [{"id":100,:"email":"[email protected]","name":"Name"},{"id":101,:"email":"[email protected]","name":"Name2"},{"id":102,:"email":"[email protected]","name":"Name3"}]
- Method
- Read a user
- Method
- GET
- URL
- Headers
- None
- Paramters
- None
- Example
- Request
- Response
- {"id":1,:"email":"[email protected]","name":"Name"}
- Method
- Create a user
- Method
- POST
- URL
- Headers
- Content-Type
- Parameters
- user
- name
- password
- password_confirmation
- user
- Example
- Request
- URL
- Headers
- Content-Type
- application/json
- Content-Type
- 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}}
- Request
- Method
- Update a user
- Method
- PUT
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- user
- name
- password
- password_confirmation
- user
- Example
- Request
- URL
- Headers
- Content-Type
- application/json
- Authorization
- AUTH_TOKEN
- Content-Type
- 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}
- Request
- Method
- Delete a user
- Method
- DELETE
- URL
- Headers
- Authorization
- Paramters
- None
- Example
- Request
- URL
- Authorization
- AUTH_TOKEN
- Response
- {"result":"success"}
- Request
- Method
Sessions
- Sign in
- Method
- POST
- URL
- Headers
- Content-Type
- Parameters
- session
- password
- session
- Example
- Request
- URL
- Headers
- Content-Type
- application/json
- Content-Type
- Parameter Body
- {"session": {"email": "[email protected]", "password": "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}
- Request
- Method
- Sign out
- Method
- DELETE
- URL
- Headers
- Authorization
- Paramters
- None
- Example
- Request
- URL
- Headers
- Autorization
- AUTH_TOKEN
- Autorization
- Response
- {"result": "success"}
- Request
- Method
Talk concert
- Read all talk concerts
- Method
- GET
- URL
- Headers
- None
- Parameters
- None
- Example
- Request
- Response
- {"result": "success", "talk_concerts": [{"id": 100,"user_id": 100,"start_time": "2015-04-15T01:04:24.358+09:00","end_time": "2015-04-15T01:04:24.358+09:00","location": "Example_place1","people_limit": 100,"content": "EXAMPLE1","enroll_start_time": "2015-04-15T01:04:24.358+09:00","enroll_end_time": "2015-04-15T01:04:24.358+09:00","created_at": "2015-04-15T01:04:24.358+09:00","updated_at": "2015-04-15T01:04:24.358+09:00","title": "EXAMPLE1" },{"id": 101,"user_id": 101,"start_time": "2015-04-15T01:04:24.358+09:00","end_time": "2015-04-15T01:04:24.358+09:00","location": "Example_place2","people_limit": 100,"content": "EXAMPLE2","enroll_start_time": "2015-04-15T01:04:24.358+09:00","enroll_end_time": "2015-04-15T01:04:24.358+09:00","created_at": "2015-04-15T01:04:24.358+09:00","updated_at": "2015-04-15T01:04:24.358+09:00","title": "EXAMPLE2" },{"id": 102,"user_id": 102,"start_time": "2015-04-15T01:04:24.358+09:00","end_time": "2015-04-15T01:04:24.358+09:00","location": "Example_place3","people_limit": 100,"content": "EXAMPLE3","enroll_start_time": "2015-04-15T01:04:24.358+09:00","enroll_end_time": "2015-04-15T01:04:24.358+09:00","created_at": "2015-04-15T01:04:24.358+09:00","updated_at": "2015-04-15T01:04:24.358+09:00","title": "EXAMPLE3" }]}
- Method
- Read a talk concert
- Method
- GET
- URL
- Headers
- None
- Paramters
- None
- Example
- Request
- Response
- {"result": "success", "talk_concert": {"id": 100,"user_id": 100,"start_time": "2015-04-15T01:04:24.358+09:00","end_time": "2015-04-15T01:04:24.358+09:00","location": "Example_place1","people_limit": 100,"content": "EXAMPLE1","enroll_start_time": "2015-04-15T01:04:24.358+09:00","enroll_end_time": "2015-04-15T01:04:24.358+09:00","created_at": "2015-04-15T01:04:24.358+09:00","updated_at": "2015-04-15T01:04:24.358+09:00","title": "EXAMPLE1" }}
- Method
- Create a talk concert
- Method
- PUT
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- talk_concert
- title
- start_time
- end_time
- location
- people_limit
- content
- enroll_start_time
- enroll_end_time
- talk_concert
- Example
- Request
- URL
- Headers
- Content-Type
- application/json
- Authorization
- AUTH_TOKEN
- Content-Type
- Parameter Body
- {"talk_concert": {"title":"EXAMPLE1","start_time":"2015-05-04T08:27:54.975+09:00","end_time":"2015-05-04T08:27:54.975+09:00","location":"Example_place1","people_limit":100,"content":"EXAMPLE1","enroll_start_time":"2015-05-04T08:27:54.975+09:00","enroll_end_time":"2015-05-04T08:27:54.975+09:00"}}
- Response
- {"result": "success","talk_concert": {"id": 100,"user_id": 100,"start_time": 2015-05-04T08:27:54.975+09:00","end_time": "2015-05-04T08:27:54.975+09:00","location": "Example_place1","people_limit": 100,"content": "EXAMPLE1","enroll_start_time": "2015-05-04T08:27:54.975+09:00","enroll_end_time": "2015-05-04T08:27:54.975+09:00","created_at": "2015-05-04T12:27:12.939+09:00","updated_at": "2015-05-04T12:27:12.939+09:00","title": "EXAMPLE1"}}
- Request
- Method
- Update a talk concert
- Method
- PUT
- URL
- Headers
- Content-Type
- Authorization
- Parameters
- talk_concert
- title
- start_time
- end_time
- location
- people_limit
- content
- enroll_start_time
- enroll_end_time
- talk_concert
- Example
- Request
- URL
- Headers
- Content-Type
- application/json
- Authorization
- AUTH_TOKEN
- Content-Type
- Parameter Body
- {"talk_concert": {"title":"EXAMPLE1","start_time":"2015-05-04T08:27:54.975+09:00","end_time":"2015-05-04T08:27:54.975+09:00","location":"Example_place1","people_limit":100,"content":"EXAMPLE1","enroll_start_time":"2015-05-04T08:27:54.975+09:00","enroll_end_time":"2015-05-04T08:27:54.975+09:00"}}
- Response
- {"result": "success","talk_concert": {"id": 100,"user_id": 100,"start_time": 2015-05-04T08:27:54.975+09:00","end_time": "2015-05-04T08:27:54.975+09:00","location": "Example_place1","people_limit": 100,"content": "EXAMPLE1","enroll_start_time": "2015-05-04T08:27:54.975+09:00","enroll_end_time": "2015-05-04T08:27:54.975+09:00","created_at": "2015-05-04T12:27:12.939+09:00","updated_at": "2015-05-04T12:27:12.939+09:00","title": "EXAMPLE1"}}
- Request
- Method
- Delete a talk concert
- Method
- DELETE
- URL
- Headers
- Authorization
- Paramters
- None
- Example
- Request
- URL
- Authorization
- AUTH_TOKEN
- Response
- {"result":"success"}
- Request
- Method