Hacker News new | ask | show | jobs
by keyreach 1438 days ago
Have I understood idea of REST that described in the article right? I still have some documented "route" to resource, but instead of mapping it trivially to URL (as done in "pseudo-REST"), client requests entry point, then goes through labelled hyperlinks and forms according to "route" to reach resource.

It makes sense as it allows implementation of seamless API across multiple servers and removes need to make consistent URL structure. But won't it add too much overhead then?

1 comments

> I still have some documented "route" to resource, but instead of mapping it trivially to URL (as done in "pseudo-REST"), client requests entry point, then goes through labelled hyperlinks and forms according to "route" to reach resource.

The basic idea is correct, the wording is not. Resources have identifiers, not routes. Hyperlinks have link relations, not labels.

> won't it add too much overhead

What overhead?