Search is a query for Learning Objects, Collections or Users.
Name | Description |
---|---|
query | The query string to be searched |
search_class | What kind of object are going to be searched |
Accept: application/json Content-Type: application/json Host: example.org Cookie:
GET /v1/search/autocomplete?search_class=LearningObject
search_class: LearningObject
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"
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/"1bf16aada5586353533a7e4f0e9ec636" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 6b5fbbd4-79b9-4bdf-a34e-eafdc8b94cc2 X-Runtime: 0.035952 Content-Length: 774
200 OK
[ { "id": 968, "name": "LearningObject 967", "type": "Livro digital", "thumbnail": null }, { "id": 969, "name": "LearningObject 968", "type": "Outros", "thumbnail": null }, { "id": 970, "name": "LearningObject 969", "type": "Livro digital", "thumbnail": null }, { "id": 971, "name": "LearningObject 970", "type": "Software Educacional", "thumbnail": null }, { "id": 972, "name": "LearningObject 971", "type": "Imagem", "thumbnail": null }, { "id": 973, "name": "LearningObject 972", "type": "Infográfico", "thumbnail": null }, { "id": 974, "name": "LearningObject 973", "type": "Experimento prático", "thumbnail": null }, { "id": 975, "name": "LearningObject 974", "type": "Vídeo", "thumbnail": null }, { "id": 976, "name": "LearningObject 975", "type": "Livro digital", "thumbnail": null }, { "id": 977, "name": "LearningObject 976", "type": "Jogo", "thumbnail": null } ]