Bot-detector / Bot-Detector-Core-Files

The server and processing files for the Bot Detector Plugin
GNU General Public License v3.0
18 stars 15 forks source link

Phase out legacy routes #274

Open Ferrariic opened 2 years ago

Ferrariic commented 2 years ago

Some routes remain on legacy, though should either be transferred over/phased out.

Some examples of the routes that remain:

Legacy

GET /stats/getcontributorid/{contributor} Get Contributor Id

GET /site/dashboard/projectstats Get Total Reports

GET /labels/get_player_labels Get Player Labels

POST /{version}/plugin/predictionfeedback/ Receive Plugin Feedback

GET /site/highscores/{token}/{ofInterest}/{row_count}/{page} Get Highscores

GET /site/highscores/{token}/{ofInterest} Get Highscores

GET site/players/{token}/{ofInterest}/{row_count}/{page} Get Players

GET /site/labels/{tokens} Get Labels

POST /site/verify/{token} Verify Bot

POST /{version}/site/discord_user/{token} Verify Discord User

GET /{version}/site/prediction/{player_name} Get Prediction

POST /discord/get_xp_gains/{token} Get Latest Xp Gains

GET /discord/verify/player_rsn_discord_account_status/{token}/{player_name} Get Discord Verification Status By Name

GET /discord/verify/get_verification_attempts/{token}/{player_name} Get Discord Verification Attempts

POST /discord/verify/insert_player_dpc/{token} Post Verification Request Information

GET /discord/get_linked_accounts/{token}/{discord_id} Get Discord Linked Accounts

POST /discord/get_latest_sighting/{token} Get Latest Sighting

POST /discord/region/{token} Get Region

POST /discord/heatmap/{token} Get Heatmap Data

POST /discord/player_bans/{token} Generate Excel Export

GET /discord/download_export/{export_id} Download Export

POST /{version}/plugin/detect/{manual_detect} Post Detect

POST /stats/contributions/ Get Contributions

GET /{version}/stats/contributions/{contributor} Get Contributions Url

extreme4all commented 2 years ago

the services that use these routes should migrate to using the new v1/ routes. if changes need to be made to the routes, then specific issues should be created. keeping the issue open just for tracking purposes

extreme4all commented 2 years ago

if the legacy routes are no longer in use we can just delete them

Ferrariic commented 2 years ago

Wontfix is an inappropriate label for this issue if we plan to take action on it