Skip to content

SkyGamesFR/SGTheAPIGradle

Repository files navigation

SGTheAPIGradle

SkyGames API to manage players, team, and discord link.

API Version Build Status Downloads File

SkyGames API to manage players, team, and discord link. It is a REST API with a database.

Installation

ALL OS:

java -jar SGTheAPI-VERSION.jar

Usage example

DISCORD ROUTES:
    http://url:8686/api/v1/discord/:player/token GET
    http://url:8686/api/v1/discord/:player/token POST
    
    http://url:8686/api/v1/discord/:token/verify GET
    http://url:8686/api/v1/discord/:token/id PATCH
    
    http://url:8686/api/v1/discord/:player/id GET
    
PLAYER ROUTES:
    http://url:8686/api/v1/players GET
    http://url:8686/api/v1/players POST
    
    http://url:8686/api/v1/players/:player GET
    http://url:8686/api/v1/players/:player PATCH
    http://url:8686/api/v1/players/:player DELETE
    
    http://url:8686/api/v1/players/:player/teams GET
    http://url:8686/api/v1/players/:player/teams PATCH
    
TEAM ROUTES:
    http://url:8686/api/v1/teams GET
    http://url:8686/api/v1/teams POST
    
    http://url:8686/api/v1/teams/:team GET
    http://url:8686/api/v1/teams/:team PATCH
    http://url:8686/api/v1/teams/:team DELETE
    
    http://url:8686/api/v1/teams/:team/players GET
    
    http://url:8686/api/v1/teams/:team/point GET
    http://url:8686/api/v1/teams/:team/point PATCH
    http://url:8686/api/v1/teams/:team/point/history DELETE

For more examples and usage, please refer to the Wiki.

Development setup

Download the project and open it in your IDE.

Release History

  • 1.0.0
    • Add all routes
    • Link discord to player
    • Add team
    • Add player
    • Add point to team
    • Add history to point
    • Add player to team
    • Add TOKEN for secure routes

Meta

FullGreen.GN – @FullGreen.GNhi@skygames.fr

Distributed under the GNU GPL v3.0 license. See LICENSE for more information.

FullGreenGN

Contributing

  1. Fork it (https://github.com/SkyGamesFR/SGTheAPIGradle/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published