Directory structures
This is the typical structure you would expect for a full-stack Astro OpenAPI project.
Some of these conventions are mandatory.
.
├── public
│ │
│ └── api
│ │
│ └── openapi.json # Auto-generated by `bundler`,
│ # mandatory for `gui-*`,
└── src # your 3rd parties tools…
│
├── definitions
│ │
│ ├── NewPet.schema.yaml
│ ├── Pet.schema.yaml
│ └── openapi.yaml # Mandatory for `backend`
│
├── services
│ │
│ ├── index.ts # Mandatory for `backend`,
│ │ # index must exports `operations` object.
│ └── pets.ts
│
└── types
└── openapi.d.ts # Auto-generated by `typegen`,
# mandatory for `client` and `backend`