🚀 Feature: Open API swagger file #123

Closed
opened 2025-10-09 16:27:40 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @userbradley on GitHub.

Feature description

I would like to see an Open API spec published for the API, as well as a swagger page for Users deployments.

Pitch

The reason I'd like to see this is because I'd like to build tools off the back of the API, and a common method of interacting with an API in development is via Swagger.

Perhaps the feature to enable and disable swagger on users deployments would be good.

Ideally as a first step, I'd like to see an open-api file for the API

(Perhaps this already exists and I cant find it?)

Originally created by @userbradley on GitHub. ### Feature description I would like to see an Open API spec published for the API, as well as a swagger page for Users deployments. ### Pitch The reason I'd like to see this is because I'd like to build tools off the back of the API, and a common method of interacting with an API in development is via Swagger. Perhaps the feature to enable and disable swagger on users deployments would be good. Ideally as a first step, I'd like to see an [open-api](https://swagger.io/specification/) file for the API (Perhaps this already exists and I cant find it?)
Author
Owner

@userbradley commented on GitHub:

Cheers - I was having a look at that pipeline earlier. I think that's going to be my solution.

Would you consider publishing the file as a static asset in GitHub or on the site at all?

@userbradley commented on GitHub: Cheers - I was having a look at that pipeline earlier. I think that's going to be my solution. Would you consider publishing the file as a static asset in GitHub or on the site at all?
Author
Owner

@kmendell commented on GitHub:

@userbradley The Open API file is generated into our Documentation so those API docs are built off of that file.

Image

Otherwise you would have to build the file your self, see the workflow on how we do this.

9e527831f9/.github/workflows/cloudflare-pages.yml (L38)

@kmendell commented on GitHub: @userbradley The Open API file is generated into our Documentation so those API docs are built off of that file. <img width="1696" height="1142" alt="Image" src="https://github.com/user-attachments/assets/21a4911a-abe4-4849-86e3-fb3e69ab2112" /> Otherwise you would have to build the file your self, see the workflow on how we do this. https://github.com/pocket-id/website/blob/9e527831f9773dc2e2146a8f29919fca8697af0e/.github/workflows/cloudflare-pages.yml#L38
Author
Owner

@userbradley commented on GitHub:

Sweeeeeet. Awesome thanks

@userbradley commented on GitHub: Sweeeeeet. Awesome thanks
Author
Owner

@kmendell commented on GitHub:

@userbradley https://pocket-id.org/swagger.yaml, its generated to here. And thats updated anytime we deploy a new website build.

@kmendell commented on GitHub: @userbradley https://pocket-id.org/swagger.yaml, its generated to here. And thats updated anytime we deploy a new website build.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-2#123