Home Is it correct to use self/current in a rest api url?
Reply: 0

Is it correct to use self/current in a rest api url?

user464
1#
user464 Published in July 19, 2018, 3:28 pm

For example let's say I have a url like /projects/{projectId}/progress.

Now, lets say a user can only be in one project. if the server already knows which project the user belongs to based on the context, do we need to pass the projectId or can we put the url as /projects/current/progress since we wouldn't be using the projectId even if it is passed.

Just want to know if it is a good practice or not.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30802 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO