Skip to content

Students

Martin Stancanelli edited this page Jan 22, 2017 · 1 revision

Students

POST to create account

URL: /students

Auth: Not required

Expected params:

{
	"email": "[email protected]",
	"name": "charly",
	"password": "secret",
	"gender": "male",
	"birthday": "2012-04-23T18:25:43.511Z"
}

Response:

https://github.com/uTeach/uteach-ws/wiki/Models#student

PUT to update student

URL: /students/$id

Auth: Required

Permitted params:

{
	"email": "[email protected]",
	"name": "charly",
	"password": "secret",
	"gender": "male",
	"birthday": "2012-04-23T18:25:43.511Z"
}

Response:

https://github.com/uTeach/uteach-ws/wiki/Models#student

GET to see student's info

URL: /students/$id

Auth: Required

Response:

https://github.com/uTeach/uteach-ws/wiki/Models#student

GET to see all students

URL: /students

Auth: Required

Permitted params:

{
  "page": 1,
  "per": 1
}

Response (array):

https://github.com/uTeach/uteach-ws/wiki/Models#student

Clone this wiki locally