sstokic-tgm / JFTSE

JFTSE Open Source MMO Framework
GNU General Public License v3.0
46 stars 26 forks source link

Expose shop data for item finder #158

Closed Lilli-Samson closed 1 year ago

Lilli-Samson commented 1 year ago

There is a function already implemented that lets the client get a list of shop items. This list would be useful for the item finder. To avoid having to implement a partial FT client in JS with authentication issues it would be great if this function could be exposed in an alternative way. I suggest listening on a different TCP-port, reading parameters (character, page) if needed to keep the list short and writing the result of the function/class. Alternatively it could be sent in a different format (JSON or XML) or uploaded as a file on some HTTP server.

viol3 commented 1 year ago

There is already SHop.xml file in the server, have you check that file?

Lilli-Samson commented 1 year ago

I know about Shop_Ini3.xml. Unfortunately shop changes are done via database update and not pull-request, so the file has outdated information. For example it says that "Carnival Pro Coin" is not available in the shop, but it is.

sstokic-tgm commented 1 year ago

Data is exposed now through the b2b-webservice. 9509100

REST-Endpoints, () is showing optional parameters: