Users API

User represents the teacher and students in the system.

Request to be a teacher

POST /v1/users/teacher_request

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: b5tB0RxMEQ7pGyyq72jNIQ
Client: YT61ZdWMuRUaAJ4fIHpHog
Uid: joel_kub@lehner.net
Host: example.org
Cookie: 

Route

POST /v1/users/teacher_request

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/users/teacher_request" -d '' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: b5tB0RxMEQ7pGyyq72jNIQ" \
	-H "Client: YT61ZdWMuRUaAJ4fIHpHog" \
	-H "Uid: joel_kub@lehner.net"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Set-Cookie: _session_id=cHQxREJnS1RoSklzeW5qUzM4Z2NnUW5QLy9OQ1IwRGhPeE1LcWJwSTF0R1FFOVRKYzFXVHV0SnJyTGI5S3AzakE3YllxdDBIS1FBWHF1KzlxT0JpbmpweFhSUkVwQlBVTjRDNzRGK0pxNHhmcUNKRlhITVE3ZjBOVFVaUWRpZ3A3dWlJMmQ2VkV2WUN4ZnFPQlRnTFZKait6MWJWVnVsOEN2VG0rdFFqa2h0b3dtSHJGSzBpeUhrM3l5dGk1QjI0LS0wbUxBZ3NxZFhpRmNUV0tzeVEwVE9BPT0%3D--31ef9bd1d54e49203c888a691f6f463a89504884; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5773bf96-1310-457f-aba1-d1a9aef962da
X-Runtime: 0.145816
Content-Length: 1

Status

200 OK

Body