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":"consequatur"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/suggestions/38" -d '{"suggestion":{"name":"consequatur"}}' -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/"b22a521617baf633ba98cdfc2e924a19"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5d29d5f3-81e0-4b35-8725-fbeb03537829
X-Runtime: 0.015226
Content-Length: 132

Status

200 OK

Body

[binary data]