Skip to content

Docs: developer guide for building a module REST API#6

Merged
HafizMMoaz merged 1 commit into
mainfrom
docs/build-module-rest-api-guide
Jul 24, 2026
Merged

Docs: developer guide for building a module REST API#6
HafizMMoaz merged 1 commit into
mainfrom
docs/build-module-rest-api-guide

Conversation

@HafizMMoaz

Copy link
Copy Markdown
Member

Closes zerp-pk/zerp#35. New Developer > Guides page walking through adding a REST API to a module, HRM as the worked example: controller/route layout, api.json + Sanctum + tenant scoping, the no-route-model-binding and apiResource-collision gotchas, ApiFormRequest validation, Scramble::registerApi, and verifying with scramble:analyze + route:cache.

Worked HRM example covering where API controllers and routes live, the
api.json + Sanctum setup and tenant scoping, the two gotchas (no route-model
binding, apiResource name collisions), ApiFormRequest validation, scoped
Scramble docs registration, and verifying with scramble:analyze + route:cache.
@HafizMMoaz
HafizMMoaz requested a review from a team as a code owner July 24, 2026 12:05
@HafizMMoaz
HafizMMoaz merged commit c9908a9 into main Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] Developer guide: build a module REST API

1 participant