Get a single resource by ID
Parameter order matches route binding: {id} is a URL segment (comes first), resource is a route default (appended after URL params). Swapping the order to (int $id, string $resource) ensures Laravel's positional dispatch aligns with the reflection parameter list after the FormRequest is injected.
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Query parameters
includestring · max: 255Optional
Responses
200Success
application/json
objectOptional
401
Unauthenticated
application/json
404Error
application/problem+json
422
Validation error
application/json
500Error
application/problem+json
get/lots/{id}
GET /your-tenant/api/v1/lots/{id} HTTP/1.1
Host: plan.claret.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}PreviousList resources using config-driven query parameters
NextList resources using config-driven query parameters
Last updated
Was this helpful?