Mime Types API

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

Getting all mime_types

GET /v1/mime_types

Request

Headers

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

Route

GET /v1/mime_types

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/mime_types" -X GET \
	-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
X-Total-Count: 12
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"c09dbfa2ab167b9e5039034301360717"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e4d4e605-a24e-4dbe-9845-49ee5517156e
X-Runtime: 0.010079
Content-Length: 671

Status

200 OK

Body

[
  {
    "id": 1,
    "extension": "gif",
    "mime_type": "audio/L24"
  },
  {
    "id": 2,
    "extension": "pptx",
    "mime_type": "text/vcard"
  },
  {
    "id": 3,
    "extension": "xls",
    "mime_type": "message/imdn+xml"
  },
  {
    "id": 4,
    "extension": "gif",
    "mime_type": "text/plain"
  },
  {
    "id": 5,
    "extension": "wav",
    "mime_type": "application/javascript"
  },
  {
    "id": 6,
    "extension": "pages",
    "mime_type": "video/x-flv"
  },
  {
    "id": 7,
    "extension": "jpg",
    "mime_type": "audio/basic"
  },
  {
    "id": 8,
    "extension": "json",
    "mime_type": "message/imdn+xml"
  },
  {
    "id": 9,
    "extension": "gif",
    "mime_type": "message/http"
  },
  {
    "id": 10,
    "extension": "mov",
    "mime_type": "model/x3d+vrml"
  },
  {
    "id": 11,
    "extension": "csv",
    "mime_type": "model/x3d+vrml"
  },
  {
    "id": 12,
    "extension": "png",
    "mime_type": "message/rfc822"
  }
]