Repository navigation
Backend Stubs
Paulo Gomes da Cruz Junior edited this page Aug 27, 2026
·
1 revision
The Waste Plus application uses WireMock for frontend development and local testing.
Stubs are co-located with the frontend project for convenience:
-
Mapping Definitions:
frontend/stub/mappings/*.json -
Body Files:
frontend/stub/__files/**/*.json
Stub files should be named after the domain they represent (e.g., codes.json, search.json).
A typical mapping file defines the request match and the corresponding response:
{
"name": "Assess area statuses",
"request": {
"url": "/api/codes/assess-area-statuses",
"method": "GET"
},
"response": {
"status": 200,
"bodyFileName": "codes/assess-area-statuses.json"
}
}- Add the body JSON to the appropriate folder in
frontend/stub/__files/. - Create or update the mapping definition in
frontend/stub/mappings/. - Ensure the
urlin the mapping matches the backend endpoint.
This wiki documents NR Waste Plus for users and developers. Verify security and deployment guidance against the current application configuration before applying it elsewhere.
- Report an issue or ask a question in the GitHub repository.
- Follow the Contributing Guidelines to propose an update.
- Read the Code of Conduct.
Collection indexes support human browsing and machine retrieval. Keep both current when adding or moving wiki pages.
NR Waste Plus Wiki | GitHub Repository