|
|
|
|
|
by status_quo69
2365 days ago
|
|
Rest is (simplified) just a way of expressing your routes as resources. If you want to post and get some things that's perfectly fine but you'll probably wind up accidentally fitting into a different paradigm (rpc for example if you start naming your routes getFooBar and newFooBar). You can also post form data instead of json if you think json is overkill but getting data from the server is probably limited to something like json unless you want to decide on a custom format or your data is truly so simple that you can just return a single text blob. |
|
What is the benefit of doing that? RPC seems much "better" than REST.