Searches API

Search is a query for Learning Objects, Collections or Users.

Autocomplete objects names

GET /v1/search/autocomplete

Parameters

Name Description
query The query string to be searched
search_class What kind of object are going to be searched

Request

Headers

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

Route

GET /v1/search/autocomplete?search_class=LearningObject

Query Parameters

search_class: LearningObject

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/search/autocomplete?search_class=LearningObject" -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
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"4e01730c93da6e60a82284eca32fdb64"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bf7b6c35-9780-480a-8282-569bc21256c6
X-Runtime: 0.037308
Content-Length: 791

Status

200 OK

Body

[
  {
    "id": 909,
    "name": "LearningObject 908",
    "type": "Infográfico",
    "thumbnail": null
  },
  {
    "id": 910,
    "name": "LearningObject 909",
    "type": "Aplicativo móvel",
    "thumbnail": null
  },
  {
    "id": 911,
    "name": "LearningObject 910",
    "type": "Áudio",
    "thumbnail": null
  },
  {
    "id": 912,
    "name": "LearningObject 911",
    "type": "Mapa",
    "thumbnail": null
  },
  {
    "id": 913,
    "name": "LearningObject 912",
    "type": "Experimento prático",
    "thumbnail": null
  },
  {
    "id": 914,
    "name": "LearningObject 913",
    "type": "Livro digital",
    "thumbnail": null
  },
  {
    "id": 915,
    "name": "LearningObject 914",
    "type": "Software Educacional",
    "thumbnail": null
  },
  {
    "id": 916,
    "name": "LearningObject 915",
    "type": "Software Educacional",
    "thumbnail": null
  },
  {
    "id": 917,
    "name": "LearningObject 916",
    "type": "Vídeo",
    "thumbnail": null
  },
  {
    "id": 918,
    "name": "LearningObject 917",
    "type": "Infográfico",
    "thumbnail": null
  }
]