Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 782 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 782 Bytes

In progress

Swagger openapi schema generator for pocketbase

  • generate all messages from db/_collections/*/schema
    • add formats like datetime, file, json, jsonschema
  • get all api endpoints available to only users, we will would admin types for now.
  • build openapi spec from the above definitions using go-swagger/ or other swagger gen or goa.design/goa

Each schema will be versioned, and schema is only available for a running app.

History of schema changes will not be available.


Instructions

  1. start the app by running make serve

  2. add collections from the admin UI.

  3. restart the server to rebuild client.

  4. visit /api/openapi to see the go client

  5. next step WIP: adding services to return openapi schema instead of api design