Mime Types API

Mime Types are the types/extentions which an Object Type can have.

Create mime_types

POST /v1/mime_types

Parameters

Name Description
mime_type[extension] The name of the mime_type
mime_type[mime_type] The mime_type

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: rZZUAE68_UKiOPY2-Ru5Ow
Client: 8OHjUBLjtuqJC4kZ7a89Gw
Uid: tiara@wolffborer.io
Host: example.org
Cookie: 

Route

POST /v1/mime_types

Body

{"mime_type":{"extension":"mp4","mime_type":"video/quicktime"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/mime_types" -d '{"mime_type":{"extension":"mp4","mime_type":"video/quicktime"}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: rZZUAE68_UKiOPY2-Ru5Ow" \
	-H "Client: 8OHjUBLjtuqJC4kZ7a89Gw" \
	-H "Uid: tiara@wolffborer.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=cUs2c2lKQ0o4blUvMk1rRFY2c1RtRXhIZGtqa3NwM0Jmd21ydzNYZDhrSmtTUktBSi9RQ1ZKVng3b1RZNmc1enJqd0hTRVdhSWo2U3dsdVRzU2c1MmxHcUJUdmxWYUJxOU42SU1SbDJwV3pqc1RNSXBJMzZsSTdVSEpHN1JBVHR2RmdQY0FETkRnaG9rUTFVcTJHcU9EWGNTZkZzY1pydUtLS2R5WFAzMUZzWmo2dzlZVWloNTV5MzNGWFZZZHc5LS1FR3p6RzlWL2FkeXBQZDZVV3NRUFV3PT0%3D--21ba3c51c078da857b824a9f27f9241640cf5fed; path=/; HttpOnly
Vary: Origin
ETag: W/"0c060d2106a82460baa5f93e1522d05f"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 0ef7bf33-7705-4970-9573-1dd70ccd57f5
X-Runtime: 0.099998
Content-Length: 57

Status

201 Created

Body

{
  "id": 37,
  "extension": "mp4",
  "mime_type": "video/quicktime"
}