4 ms·
We implemented something similar for The OpenPhoto Project where every URL a user visits is a visual representation of an API endpoint. My site, for example, i
by jmathai 14y ago
We implemented something similar for The OpenPhoto Project where every URL a user visits is a visual representation of an API endpoint.
My site, for example, is at http://jmathai.openphoto.me/photos/list http://jmathai.openphoto.me/photos/list. You can add ".json" to the end to see the JSON representation of that page. http://jmathai.openphoto.me/photos/list.json http://jmathai.openphoto.me/photos/list.json. The same rule applies across the site.
We wrote about it a while back.
http://blog.theopenphotoproject.org/post/8462620991/clean-urls-that-your-users-should-be-able-to-guess http://blog.theopenphotoproject.org/post/8462620991/clean-ur...