Suggestions API

Are the suggestion forms of the API.

Updating suggestions

PUT /v1/suggestions/:id

Parameters

Name Description
suggestion[name] The suggestion
suggestion[link] The link to site with the suggested contents
suggestion[description] The description of the suggested contents

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

PUT /v1/suggestions/38

Body

{"suggestion":{"name":"labore"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/suggestions/38" -d '{"suggestion":{"name":"labore"}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"47a8f6e01789af9d17d91ce18fda99a4"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 82443ba1-222d-4d8f-85ed-574a3bdbd4d9
X-Runtime: 0.015519
Content-Length: 95

Status

200 OK

Body

{
  "id": 38,
  "name": "labore",
  "link": "optio",
  "description": "Rerum non qui iste.",
  "status": "created"
}