Api docs generator mewayz

  Updated May 2026Mewayz

API Docs Generator in Mewayz

The API Docs Generator Add-On provides an in-app, browsable reference for the Mewayz REST API.

Mewayz-original module — no Mewayz upstream. Documentation authored from package source at packages/mewayz/ApiDocsGenerator/.

Demo URL

In the product
app.mewayz.com/api/docs
Api docs
Api docs

Introduction

The API Docs Generator Add-On gives operators and third-party developers a one-page, searchable reference for the Mewayz REST API. It is the in-app equivalent of a Swagger UI — every documented endpoint, request schema, response schema, and example payload is rendered inside the admin so a developer never has to leave the platform to integrate.

The documentation surface is schema-driven: the package loads pre-built JSON files from src/documentation/ (one per domain: items.json, project.json, account.json, etc.), keyed by a master config.json that lists which domains to render and their display names. This means the docs are accurate to the actual contract — they don't drift away from the routes because every release ships both the routes and the matching JSON schema together.

How To Install The Add-On?

To Set Up the API Docs Generator Add-On, you can follow this link: Setup Add-On.

The Add-On is gated by PlanModuleCheck:ApiDocsGenerator. Activate it on a plan or per-tenant via the Add-Ons admin page; once active, an "API Docs" entry appears in the sidebar.

How to Access the API Docs

Authenticating to the Mewayz API

All Mewayz API endpoints documented here are protected by **Laravel Sanctum** and require a bearer token in the Authorization header. The content-type is enforced via the api.json middleware — every request must include Content-Type: application/vnd.api+json (or equivalent JSON header) or the request is rejected before reaching the controller.

To issue a token:

Endpoint Coverage

The bundled JSON schemas cover the following domains:

Permissions

Visibility of the API Docs entry in the sidebar is controlled by Spatie permission manage-api-docs. Operators without this permission do not see the menu entry and receive a 403 if they visit /api-docs directly.

Operator Notes

Was this helpful?