Dealing with multiple routes in a service

I created a service with the path /auth/ and inside of it I add a route path = /v1/users/login methods = POST. When I request to Kong with kongapi/auth/v1/users/login it says there is no matching routes of POST /auth/. So I modified both path from service and its route to /auth/v1/users/login and it’s now working. From what I understand with Service-Route is like Parent-Child where if visit an endpoint, it will check the root path (Service) and then traverse it inside (Routes) and look for the matching route. But in my case, it seems like every endpoints must be individual service. Can someone enlighten me on this?


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ