Skip to content

pritamsoni-hsr/pocketbase-codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

generate openapi client for pocketbase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published