MegaAntiCheat / client-backend

GNU General Public License v3.0
120 stars 26 forks source link

Add mac/playerlist/v1 API endpoint. #75

Closed lili7h closed 1 year ago

lili7h commented 1 year ago

Add an API endpoint to dump the PlayerRecords object, useful for verifying if a player exists in the on-disk data store.

Test on Windows with:

Invoke-RestMethod -Uri http://127.0.0.1:3621/mac/playerlist/v1 -OutFile test-request.json 

Test on Linux with:

curl http://127.0.0.1:3621/mac/playerlist/v1 -H "Accept: application/json"
lili7h commented 1 year ago

Note: Wiki has been updated to reflect the mac/playerlist/v1 endpoint.

lili7h commented 1 year ago

Aims to resolve and implement #49

Bash-09 commented 1 year ago

Looking good and seems to work