I'm trying to understand how to construct URIs for RESTful web services. Assume I had a dating site, would the following be correct:
- domain.com/profiles/ <-- list of profiles
- domain.com/profiles/123/ <-- profile number 123
- domain.com/profiles/123/likes/ <-- list of profile 123's likes
- domain.com/profiles/123/likes/2/ <-- 2nd item in the list of profile 123's likes
Am I close or did I get this totally wrong?