Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David9604/BackMaqagr/llms.txt
Use this file to discover all available pages before exploring further.
User-Scoped Resource: This endpoint only returns terrains owned by the authenticated user. Each user can only view their own terrains.
Authentication Required
This endpoint requires a valid JWT token in the Authorization header:Pagination
Results are paginated with the following default values:- limit: 10 (records per page)
- offset: 0 (starting position)
Response Structure
The response includes:- success: Boolean indicating request success
- data: Array of terrain objects belonging to the authenticated user
- pagination: Pagination metadata (page, limit, total, totalPages)
Ownership Validation
Theuser_id filter is automatically applied based on the authenticated user’s JWT token. Users cannot access terrains belonging to other users.
Example Response
Implementation Details
FromterrainController.js:39-54:
