Y
Hacker News
new
|
ask
|
show
|
jobs
Show HN: A fluent REST client that runs directly in the browser
(
github.com
)
3 points
by
mahadevank
3171 days ago
1 comments
TekMol
3171 days ago
Using it, what do I gain over a simple fetch call like the one below?
data = await fetch("http:://api.example.com/...").then(r => r.json());
link
mahadevank
3166 days ago
You get a more natural interface to your resources. The usage you're describing is pretty simple, but once you start getting into things like headers, parameter substitution etc., flowrest offers a very convenient way to manage them.
link
data = await fetch("http:://api.example.com/...").then(r => r.json());