-
-
Notifications
You must be signed in to change notification settings - Fork 0
example api
github-actions[bot] edited this page Feb 27, 2026
·
2 revisions
Base URL: http://127.0.0.1:3000
The example app uses global prefix api, so routes start with /api.
GET /api/- Response: welcome string
-
GET /api/health -
Response:
OK -
GET /api/health/db -
Response:
DB_READY
GET /api/v1/users/GET /api/v1/users/countGET /api/v1/users/{id}GET /api/v1/users/{id}/existsPOST /api/v1/users/PUT /api/v1/users/{id}PUT /api/v1/users/{id}/replaceDELETE /api/v1/users/{id}
{
"name": "Alice",
"email": "alice@example.com"
}{
"name": "Alice Updated",
"email": "alice2@example.com"
}GET /api/v1/settings/runtimeGET /api/v1/settings/GET /api/v1/settings/{id}POST /api/v1/settings/PUT /api/v1/settings/{id}DELETE /api/v1/settings/{id}
GET /api/v1/versioning/helloGET /api/v2/versioning/hello
NestForge errors return a consistent JSON shape:
{
"statusCode": 400,
"error": "Bad Request",
"message": "..."
}NestForge Docs | Home | Quick Start | Project Structure | GitHub Repo