Get group details
GET/truckers/trucker-group/:code
Retrieves the full details of a specific group by its unique code.
Functionality:
- Returns detailed group information including associated and pending members
- Includes a 'canJoin' field indicating whether the current company can join the group
- Verifies that the user belongs to a valid carrier company
Authentication required: Carrier company JWT
Usage example:
GET /truckers/trucker-group/ABC123
Request
Responses
- 200
- 401
- 500
Complete details of the requested group.
Includes:
- Basic group information
- Member companies (associated)
- Pending requests (pendingToAccept)
- canJoin indicator for the current company
Unauthorized or group not found.
Possible causes:
- Invalid or expired JWT token
- User is not associated with any carrier company
- No group exists with the provided code
Internal Server Error