Stop being the product.
Become the owner.
or
sign uplog in

How to decide api url structure? Hey guys I need help. I…

How to decide api url structure?

Hey guys I need help. I am shipping a public monetized api. And how should url be structured out of these.

/v1/property?fields=risk.bushfire,market.sale.price

/v1/property/risk?fields=bushfire

/v1/property/risk/bushfire

problem is. They will have to make requests indvidually if they want all risks. Plan is to make my own site use that same api too. And hence instead of just 1 db query sending all risks. It will have 5 queries. How to best structure it. For a whole report on a property it will be massive amount of api calls.
#js #programming #technology #dev
source
earnings
4,000 mlx total
$0  total
engagement
6 views
0 reactions

0 comments