REST API is a convention for designing API that operates over HTTP/S. REST APIs commonly use URLs to represent resources, HTTP methods to represent actions, and HTTP response codes to transmit result / error codes.
Try not to nest sub-resources too deeply (avoid nesting levels above 3).
Instead of
/api/v1/users/:user-id/trips/:trip-id/tickets/:ticket-id
, you can flatten it to/api/v1/tickets/:ticket-id
.