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

feature/gist 80 add paginate on gists #27

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

Courtcircuits
Copy link
Member

@Courtcircuits Courtcircuits commented Nov 8, 2024

Reopening this PR, because when integrating the frontend I realized that we need to add a pagination to the gists. I will add this feature now.
As you can see it breaks the current API. So to have no downtime maybe we should add a v1/ API prefix.

new /gists return is like :

{
    "gists": [
        {
            "id": "1f12108e-7840-4485-96f4-c5e61f15aa20",
            "name": "Test3",
            "content": "teewqweqewq",
            "owner_id": "17ea63c3-17bc-4564-b108-32a20dec3bb7",
            "description": "",
            "language": "text",
            "visibility": "public"
        },
        {
            "id": "5d1cd247-9259-4803-823e-3612361d9f6b",
            "name": "Test",
            "content": "test",
            "owner_id": "17ea63c3-17bc-4564-b108-32a20dec3bb7",
            "description": "",
            "language": "text",
            "visibility": "public"
        },
        {
            "id": "9481dd14-869c-4628-b4bb-607b6f9d8235",
            "name": "Test2",
            "content": "testweq",
            "owner_id": "17ea63c3-17bc-4564-b108-32a20dec3bb7",
            "description": "",
            "language": "text",
            "visibility": "public"
        }
    ],
    "nb_pages": 0
}
  • feat(GIST-80): add paginate on gists
  • feat(GIST-80): added nb pages to gists

Copy link

linear bot commented Nov 8, 2024

@Courtcircuits Courtcircuits merged commit b70766d into main Nov 8, 2024
1 check passed
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 this pull request may close these issues.

1 participant