Commit Graph
42 Commits
Author SHA1 Message Date
Adam c8ffa3994d loot tracker: batch loot submissions 2019-08-19 12:15:00 -04:00
Adam 277a3ccd35 http-service: use jndi provided mongo 2019-08-08 19:29:51 -04:00
Adam edfd52af23 config service: validate config values 2019-08-08 17:31:12 -04:00
Adam 4286c680f2 config service: add test for parseJsonString 2019-08-08 17:31:12 -04:00
Adam 730ad1c3c6 config service: return status based on whether set/unset were successful 2019-08-08 17:31:11 -04:00
Jordan Atwood 41968c725f Remove unused Slf4j annotations and imports 2019-07-11 00:33:00 -07:00
AdamandRobin Rijkeboer ee216e0c43 http api: update for beginner clues
Co-authored-by: Robin Rijkeboer <robin.rijkeboer@itonomy.nl>
2019-04-11 20:54:39 -04:00
Tomas Slusny d3c12157b0 Add development configuration for Spring http-service
- Remove spring boot test (no longer necessary)
- Move test development configuration to main package

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-24 11:44:54 -04:00
Tomas Slusny b367e34202 Migrate OAuth callback to Spring configuration property
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-24 11:44:54 -04:00
chivesrs 2427f61f37 Enable checkstyle on test sources 2019-03-04 14:56:46 -05:00
Tomas Slusny f91412b33e Migrate Spring unit tests to spring profiles
Instead of replacing configuration with test configuration on classpath,
create test profile and use that.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-04 19:25:54 +01:00
Tomas Slusny 52a862c43b Migrate SpringBootWebApplicationTest to spring profiles
- Instead of replacing configuration with dev configuration on classpath,
create dev profile and use that
- Move common properties to application.yaml

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-04 19:25:23 +01:00
Adam f62e7e3f14 config controller: add test 2019-02-18 16:39:01 -05:00
Adam c55491cc11 http service: add loottracker controller test 2019-02-17 17:59:54 -05:00
Adam 2a41d88c29 http service: use spring datasource configuration 2019-02-17 17:59:53 -05:00
Adam fe2eba06a7 http service: use gson instead of jackson for json serialization
This fixes deserailization of the loot timestamps for the loot tracker,
and maybe other things. Note this does not use the same Gson instance as
http-api as Spring creates its own Gson, however they are both default
Gson instances.
2019-02-16 21:14:17 -05:00
Magic fTail 803a019a27 http api/service: update Jagex hiscore API 2018-10-31 19:10:19 -04:00
Tomas Slusny 89b8bc52ca Make HiscoreClient call the OSRS hiscore API directly 2018-09-14 15:31:50 -04:00
Adam 9906f3120d http-service: add caching for hiscore lookups 2018-09-12 07:50:38 -04:00
Adam 40ff55558f world service: split controller from service and add cache 2018-08-12 09:15:03 -04:00
Adam b2a616aac5 http-service: switch json serializer to jackson
This also changes it to minify json by default
2018-06-19 14:07:42 -04:00
Adam 7f25ec8238 http-service: crawl tradable item prices instead of queueing on demand 2018-06-18 09:35:11 -04:00
Lotto 8259410178 http-service: add services for getting blog posts, tweets and osrs news 2018-03-04 09:22:41 -05:00
Adam 77a3f48627 item service: always use last known price, and queue price updates instead 2018-02-16 23:28:37 -05:00
Adam cda04b7acd Split out cache updater into own project 2018-02-03 19:24:35 -05:00
Adam 3577d58679 xp tracker: don't add duplicate entries if nothing changes 2018-01-29 17:33:02 -05:00
Adam 7d5e0ff389 http-service: add beginning of xp tracker 2018-01-20 19:48:07 -05:00
Adam 4d2c02e81c http-service: split hiscore service from controller 2018-01-20 19:11:28 -05:00
UniquePassive 5cf24a8f83 Add world types 2018-01-06 19:54:25 -05:00
Julian Nowaczek b12bd04764 Hiscore feature expansion (#152)
* Add remaining Hiscore parameters to HiscoreSkill

* Add remaining Hiscore parameters to HiscoreResult

* Add remaining Hiscore parameters to HiscoreResultBuilder

* Add new Hiscore panel icons (from offical Hiscore website, so they don't match very well) and subpanel for Clue Scrolls, Bounty Hunter - Hunter, Bounty Hunter - Rogue, and Last Man Standing

* Add logic to catch unranked hiscores and display them properly. Not currently checking for combat level calculations, but other cases should be covered.

* Make HiscoreService and HiscoreClient aware of different hiscore endpoints

* Add Spring Editor to convert path variable String to enum, add pretty versions of HiscoreEndpoint names, add new icons for endpoint selection

* Fix HiscoreEndpoint.valueof failing silently and preventing lookup, update HiscoreService tests, add Hiscore endpoint selection buttons to HiscorePanel

* Replace HiscorePanel skill icons with smaller versions from the official hiscore website

* Fix details listing rank instead of experience

* Fix details listing rank instead of experience, fix skill panels not being cleared when selecting a different hiscore category, make HiscoreService respond 404  when a Hiscore entry is not found instead of 500.

* Fix skill panels not being cleared when selecting a different hiscore category, make HiscoreService respond 404  when a Hiscore entry is not found instead of 500.

* Revert changing RuneliteAPI base URL, those changes should not have been committed (local testing only)

* Add ClueScrollAll and ClueScrollMaster to HiscoreService tests.

* Style cleanup and relocate NotFoundException to http-service package

* Use relative path for small skill icons

* Move Jagex Hiscore urls from HiscoreService to HiscoreEndpoint

* Create new util package in http-service for common exceptions and Spring converters, clean up HiscoreService by streamlining error handling and removing methods for old unit test

* Change HiscoreService unit test to use new HiscoreTestService subclass which handles setting the test URL

* Change HiscoreEndpoint hiscoreUrls to HttpUrl instead of String

* Cleanup formatting, remove unused http-service exception

* http-api: cleanup HiscoreEndpoint
2017-09-16 16:41:11 -04:00
Adam 94530bda30 http-service: add cache service 2017-09-11 16:25:25 -04:00
Adam 2cc0eb4766 http-service: use spring externalized configuration for oauth id/secret 2017-09-10 13:20:54 -04:00
Adam b6a7108ca5 http-service: switch to spring-web from sparkjava/guice 2017-08-10 17:56:03 -04:00
Adam cae29ff754 http-service: set content-type to application/json in various responses 2017-06-12 19:11:15 -04:00
Adam 5250c4f1c3 http-service: remove old servicerunner test - does not anymore due to guice+JNDI 2017-05-15 20:45:47 -04:00
Adam 7bac276e25 http-service: add account api 2017-05-05 23:11:47 -04:00
Adam 1ffb146474 http api/service: switch to okhttp
okhttp has websocket support and http/2 support
2017-05-01 19:30:56 -04:00
Adam ea9e17a472 http-service: fix test. irritatingly can't make slf4j-simple the only slf4j implementation during tests 2017-04-20 15:02:31 -04:00
Adam 19daaae739 http-service: use guice for dependency injection 2017-04-20 12:23:13 -04:00
Adam db7737906f http service: fix test 2017-04-14 20:15:50 -04:00
Adam ac0dda1f63 http service: add worlds api 2017-02-28 12:30:54 -05:00
Adam 32f0736d1f Initial work on web api, with a basic hiscore api 2017-02-12 15:01:09 -05:00