[0.7.1] Public/Remote API Imrovements

TopHatTim shared this feedback 5 years ago
Submitted

I have recently discovered how great this API is - or at least could be with some small improvements. While trying to add some features to my discord bot I made notes on any problems/improvement I found so here you are :)


I also wrote up a Postman collection with docs so the API can easily be tested

https://documenter.getpostman.com/view/2984774/RztrJmPr


/vrageremote/v1/session/factions/{{tag}}

  • Can faction info also include number of players in faction.

/vrageremote/v1/session/claims/{{areaId}}

  • Claims seem to be broken unless they are placed during that session, shows all other claims as AreaID 0, location "Faeron, A1, A1" and TimeRemaining at 0.

/vrageremote/v1/session

  • ModName just returns an empty string

/vrageremote/v1/session/players

  • Can players also have identityId so we can use this in other API requests that need it - or change identityId requirement to be steamId instead.

/vrageremote/v1/session/players/{{identityId}}/claims

  • Only works when player is online

/vrageremote/v1/session/players/{{id}}/inventory

  • Only works when player is online
  • Fails with 500 error (when player is online)

/vrageremote/v1/session/players/{{id}}/research

  • Only works when player is online

/vrageremote/v1/session/players/{{id}}/quests

  • Only works when player is online

/vrageremote/v1/session/gamechat

/vrageremote/v1/session/gamechat/world

  • These both broke in 0.7, just returns an empty Data JSON object


Other

  • Could be useful to have a route where you give it a steamID and it returns an IdentityID.
  • I also found a security issue that could crash any public API but I'll send this privately to someone

Leave a Comment
 
Attach a file