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

New API contract [ /api/things ] #16

Open
dillonfagan opened this issue Apr 10, 2022 · 0 comments
Open

New API contract [ /api/things ] #16

dillonfagan opened this issue Apr 10, 2022 · 0 comments

Comments

@dillonfagan
Copy link
Contributor

dillonfagan commented Apr 10, 2022

GET /api/things?p=0

{
    "DIY": [
        {
            "id": "...",
            "title": "Hammer",
            "description": "...",
            "categories": ["DIY"],
            "images": ["https://..."]
        }
    ],
    "Outdoors": [],
    "Sports": []
}

To simplify our client-side logic and to prep for pagination, we should introduce a new contract for retrieving all things in the library's collection, organized by category.

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

No branches or pull requests

1 participant