We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description Create all the classes and functions needed to access the GET endpoint {{base_url}}/occurrences
GET
{{base_url}}/occurrences
File Location
- data |__ remote - domain |_ mamagers
Requirements
endpoints
services
Response
Occurence
This endpoint must expose the following query parameters to be used:
page[number]
page[size]
search
exact
events
types
statuses:
districts
counties
parishes
sort
order
The following methods must be exposed in an abstracted class called OccurrencesManager:
OccurrencesManager
Example Response
{ "links": { "first": "https://api.vost.pt/v1/occurrences?page=1", "last": "https://api.vost.pt/v1/occurrences?page=42751", "next": "https://api.vost.pt/v1/occurrences?page=2" }, "data": [ { "type": "occurrences", "id": "42751", "attributes": { "locality": "Ervedosa do Douro", "latitude": 41.16918811, "longitude": -7.49500763, "started_at": "2019-08-10 14:23:00", "ended_at": null, "created_at": "2019-08-10 15:05:02", "updated_at": "2019-08-10 15:05:02" }, "relationships": { "type": { "data": { "type": "occurrence_types", "id": "108" } }, "status": { "data": { "type": "occurrence_statuses", "id": "5" } }, "parish": { "data": { "type": "parishes", "id": "2759" } } }, "links": { "self": "https://api.vost.pt/v1/occurrences/42751" } } ], "included": [ { "type": "occurrence_types", "id": "108", "attributes": { "code": 4305, "name": "Limpeza de Via e Sinalização de Perigo", "created_at": "2019-07-02 13:31:19", "updated_at": "2019-07-02 13:31:19" } }, { "type": "occurrence_statuses", "id": "5", "attributes": { "code": 5, "name": "Em Curso", "created_at": "2019-07-02 13:31:18", "updated_at": "2019-07-02 13:31:18" } }, { "type": "parishes", "id": "2759", "attributes": { "code": "181502", "name": "ERVEDOSA DO DOURO", "created_at": "2019-07-02 13:31:16", "updated_at": "2019-07-02 13:31:16" }, "links": { "self": "https://api.vost.pt/v1/parishes/2759" } } ], "meta": { "items": 1, "total": 42751 } }
The text was updated successfully, but these errors were encountered:
Vanethos
Successfully merging a pull request may close this issue.
Description
Create all the classes and functions needed to access the
GET
endpoint{{base_url}}/occurrences
File Location
Requirements
endpoints
class where the endpoint is declared must be createdservices
class where the mapping fromResponse
toOccurence
must be createdThis endpoint must expose the following query parameters to be used:
page[number]
page[size]
search
exact
events
types
statuses:
districts
counties
parishes
sort
order
The following methods must be exposed in an abstracted class called
OccurrencesManager
:Example Response
The text was updated successfully, but these errors were encountered: