Skip to content
New issue

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

Parishes Endpoint #12

Closed
Vanethos opened this issue Aug 14, 2019 · 0 comments · Fixed by #50 or #62
Closed

Parishes Endpoint #12

Vanethos opened this issue Aug 14, 2019 · 0 comments · Fixed by #50 or #62
Assignees

Comments

@Vanethos
Copy link
Contributor

Description
Create all the classes and functions needed to access the GET endpoint {{base_url}}/parishes

File Location

- data
|__ remote
- domain
|_ mamagers

Requirements

  • A endpoints class where the endpoint is declared must be created
  • A services class where the mapping from Response to Parish must be created

Example Response

{
    "links": {
        "first": "https://api.vost.pt/v1/parishes?page=1",
        "last": "https://api.vost.pt/v1/parishes?page=3092",
        "next": "https://api.vost.pt/v1/parishes?page=2"
    },
    "data": [
        {
            "type": "parishes",
            "id": "3086",
            "attributes": {
                "code": "480106",
                "name": "LOMBA",
                "created_at": "2019-07-02 13:31:18",
                "updated_at": "2019-07-02 13:31:18"
            },
            "links": {
                "self": "https://api.vost.pt/v1/parishes/3086"
            }
        }
    ],
    "meta": {
        "items": 1,
        "total": 3092
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants