I am having a problem with my current RESTful api design.
What I have is a REST api which is consumed by Django web-server, which renders the HTML templates.
REST api
> Django webserver
> HTML
The problem I am encountering is that I have to reconstruct all the URLS like
mysite.com/main/cities/<id>/streets/
into equivalent rest api urls on my web-server layer:
api.com/cities/<id>/streets/
Thus I have a lot of mapping back and forth, but as far as I know REST says that the client (in this case my web-server) should NOT need to know how to re-construct the urls.
Can REST be used for such a setup and how? Or is it only viable for Server-Client architecture.
Thanks