The extension serves a complete OpenAPI 3.0 specification covering all DMSI Advanced API endpoints.
Accessing the specification:
| Resource | URL |
|---|---|
| Swagger UI (interactive) | DDLS > Developer > Documentation (admin area) |
| JSON spec | GET /wp-json/dmsi-api/v1/docs/openapi.json |
| YAML spec | GET /wp-json/dmsi-api/v1/docs/openapi.yaml |
The specification is generated dynamically from all registered REST routes. It includes:
- All endpoints with HTTP methods, paths, and summaries
- Path parameters and query parameters with types and descriptions
- Request body schemas with required and optional fields
- Response schemas for all documented status codes
- Authentication requirements per endpoint
Using with external clients:
The JSON or YAML spec can be imported directly into:
- Postman — use Import > Link and paste the JSON endpoint URL
- Insomnia — use Import > From URL and paste the JSON endpoint URL
- Any OpenAPI 3.0 compatible tool — download the YAML file and import it
The spec reflects the current state of the running plugin. If you add custom endpoints via the dmsi_aapi_register_routes action, they will appear in the spec automatically.
