http-service: move several hardcoded urls to config

Also make an OkHttpClient bean and use it everywhere
This commit is contained in:
Adam
2021-12-22 12:46:52 -05:00
parent cc3ba2d633
commit b6e17cd15e
10 changed files with 109 additions and 66 deletions

View File

@@ -47,3 +47,12 @@ runelite:
url: https://prices.runescape.wiki/api/v1/osrs/latest
price:
cache: 30 # minutes
feed:
rssUrl: https://runelite.net/atom.xml
worlds:
url: http://www.runescape.com/g=oldscape/slr.ws?order=LPWM
osrsnews:
rssUrl: https://services.runescape.com/m=news/latest_news.rss?oldschool=true
item:
itemUrl: https://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json
priceUrl: https://services.runescape.com/m=itemdb_oldschool/api/graph