Contacts API

Are the contact forms of the API.

Create contacts

POST /v1/contacts

Parameters

Name Description
contact[name] The name of the contact
contact[email] The email of the contact
contact[message] The message of the contact

Request

Headers

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

Route

POST /v1/contacts

Body

{"contact":{"name":"Sophia Vieira","email":"chyna.boehm@mcdermott.org","message":"Dolorum nam commodi facilis id incidunt quibusdam."}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/contacts" -d '{"contact":{"name":"Sophia Vieira","email":"chyna.boehm@mcdermott.org","message":"Dolorum nam commodi facilis id incidunt quibusdam."}}' -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/"d4bafd6220409d2f6d22c2552e2845a3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9f938b22-1688-4ce8-96eb-bd70cfc89faa
X-Runtime: 0.015512
Content-Length: 131

Status

201 Created

Body

{
  "id": 37,
  "name": "Sophia Vieira",
  "email": "chyna.boehm@mcdermott.org",
  "message": "Dolorum nam commodi facilis id incidunt quibusdam."
}