Hello everyone.
I’m in the process of creating proxies for a back-end server. And I’m trying to avoid complex pathing And I have three questions:
Let’s suppose that the api has three entities: University, students and teachers. In students there are services for junior students only and services for senior students only and common services between the two.
- Is it ok to use query parameters to route to a certain back-end service? Or should services be called using a path such as /seniorstudent. for example:
- proxy side /students?studentType=“seniorstudent” => in backend side /students/seniorstudents
- Is it ok for the route to a backend service be different that the route of apigee. for example:
- Apigee proxy end point is /university-students/avg-grades.
- Backend service is /students/averageGrades.
- How would you devid if it should be, the services of senoir students, junior students and common services
I’m trying to follow RFC3986 design and this best practices:
https://blog.restcase.com/5-basic-rest-api-design-guidelines/
Thank you very much.