Suggestions API

Are the suggestion forms of the API.

Create suggestions

POST /v1/suggestions

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

POST /v1/suggestions

Body

{"suggestion":{"name":"inventore","link":"quo","description":"Facilis autem quos quasi pariatur vero nihil sed."}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/suggestions" -d '{"suggestion":{"name":"inventore","link":"quo","description":"Facilis autem quos quasi pariatur vero nihil sed."}}' -X POST \
	-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/"f83e4502e08606a04f61ac7db5326313"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: cbd70d89-d120-4ba7-b927-550143bb6b10
X-Runtime: 0.016000
Content-Length: 126

Status

201 Created

Body

{
  "id": 37,
  "name": "inventore",
  "link": "quo",
  "description": "Facilis autem quos quasi pariatur vero nihil sed.",
  "status": "created"
}