You are viewing a single comment's thread from:
RE: DevTool SPS proposal: steem trx finder
Wondering why your RESTful api uses query params, instead of representing resources with URIs.
Wondering why your RESTful api uses query params, instead of representing resources with URIs.
Some do work as plain URIs, like https://anyx.io/v1/database_api/get_dynamic_global_properties, as this has no parameters.
consider something like https://developers.steem.io/apidefinitions/#database_api.list_accounts
The mapping is intuitive, instead of POSTing
'{"jsonrpc":"2.0", "method":"database_api.list_accounts", "params": {"start":"steemit", "limit":10, "order":"by_name"}, "id":1}'
you can instead do
http://anyx.io/v1/database_api/list_accounts?start=steemit&limit=10&order=by_name
This is how restful implementations work typically. You have parameters to format the specific data you are interested in.