ff14-advanced-market-search / saddlebag-with-pockets

This is the Frontend for the FF14 Marketplace

Home Page:https://saddlebagexchange.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace craftsim and shopping list

cohenaj194 opened this issue · comments

ref: https://github.com/ff14-advanced-market-search/Aetheryte/pull/240

The old method of craftsim and shopping list with the 2 apis is bad. Originally the idea was that we would pause inbetween calls and let the users edit the items. Thats not going to happen so lets just turn it into 1 api.

/api/v2/shoppinglist and /api/v2/craftsim

the old method was:

  • making input for /api/createshoppinglist
  • then taking the output and using it as post data for /api/shoppinglist
  • then for craftsim we were using /api/recipelookup
  • and then taking that output for /api/craftsim

now its just one api for either craftsim or shopping list

  • the /api/v2/shoppinglist takes the same inputs as /api/createshoppinglist but then gives the output from /api/shoppinglist without the need for a 2nd api call
  • the /api/v2/craftsim takes the same inputs as /api/recipelookup but then gives the output from /api/craftsim without the need for a 2nd api call