Institutions API

Institutions can be schools, universities, or any other institution.

Creating an institution

POST /v1/institutions

Parameters

Name Description
name The name of the institution
description The description of the institution
address The address of the institution
city The city of the institution
country The country of the institution

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: DpjoAEuEzfVv_jow5T09EQ
Client: iu2LSOkguwadYDKKl7kV_Q
Uid: litzy_crist@wittingschinner.io
Host: example.org
Cookie: 

Route

POST /v1/institutions

Body

{"name":"Gúbio Albuquerque","description":"Minima asperiores veniam nihil. Soluta iste eligendi id. Repellat qui cum fugit quidem id. Tempore perferendis recusandae facilis aut aut.","address":"907 Alameda Maria Viana","city":"Vitor do Sul","country":"Dinamarca"}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/institutions" -d '{"name":"Gúbio Albuquerque","description":"Minima asperiores veniam nihil. Soluta iste eligendi id. Repellat qui cum fugit quidem id. Tempore perferendis recusandae facilis aut aut.","address":"907 Alameda Maria Viana","city":"Vitor do Sul","country":"Dinamarca"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: DpjoAEuEzfVv_jow5T09EQ" \
	-H "Client: iu2LSOkguwadYDKKl7kV_Q" \
	-H "Uid: litzy_crist@wittingschinner.io"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=NzRXZkpQVlNETW4ySmxqNjBWRExPMG02SVl2SlM1d1BnVnllcklDOVFobjhSNlJUS1J5OEZsQ1BRdE4zNXZPT3JqMTFoL1F3UkxtaEtWbFAvTnNubnVYYUQxOUFMa2dSMFZCMUhBbjhtTFJ5MXdMQ3k0VG1iS3BGRy9QRU5nM3pPWHcwRG5PN1o0UHF6bEJraERQNlRBV1B1TlhtTlJTZzQzUi96TjEvWis5bldtSFI4SlJZUFE1aytDMHE0RWszLS1EaVcrYjhmVHNwSDc5WVZFYjM4TUFRPT0%3D--f365fcef2eca6454319efd4254c9dfa883295fba; path=/; HttpOnly
Vary: Origin
ETag: W/"3998f4328b2da5840dd32788fd15547c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4663e255-b9d1-4e04-8add-1f0b962c8fb2
X-Runtime: 0.100440
Content-Length: 364

Status

201 Created

Body

{
  "id": 43,
  "name": "Gúbio Albuquerque",
  "description": "Minima asperiores veniam nihil. Soluta iste eligendi id. Repellat qui cum fugit quidem id. Tempore perferendis recusandae facilis aut aut.",
  "address": "907 Alameda Maria Viana",
  "city": "Vitor do Sul",
  "country": "Dinamarca",
  "avatar": "",
  "created_at": "2020-10-21T20:41:09.020Z",
  "updated_at": "2020-10-21T20:41:09.020Z"
}