Skip to content

Web API for La Boulangerie Minecraft Server. Access public data from Bukkit, Towny, LaBoulangerieMMO and other with ease.

License

Notifications You must be signed in to change notification settings

LaBoulangerie/LaBoulangerieAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛰️ LaBoulangerie API

Web API for La Boulangerie Minecraft Server. Access public data from Bukkit, Towny, LaBoulangerieMMO and other with ease.

📙 Docs

Docs available at http://api.laboulangerie.net.

🔑 Tokens

Some of the routes are only accessible with an API key. For now, there are only admin routes requiring API keys but in the future there might be new restricted routes for a selected set of users.

🔌 Websockets

Websockets are not supported by Swagger, this is why there are documented right below.

Path: /ws/towny You can connect to this websocket to receive events from Towny, like :

  • NewTownEvent Triggered when a town is created

    Example

    {
      "event": "NewTownEvent"
      "data": {
        "town": {
          "name": "CubeCity",
          "uuid": "1bb33d34-8553-401c-aaf8-6cd6f00d1cd4"
        } 
      }
    }

    You can then make a request to /town/UUID to get info on this town.

  • NewNationEvent Triggered when a nation is created

    Example

    {
      "event": "NewNationEvent"
      "data": {
        "nation": {
          "name": "BreadPain",
          "uuid": "48e344cf-2d30-4d80-a918-89c56a8393c3"
        } 
      }
    }

    You can then make a request to /nation/UUID to get info on this nation.

  • DeleteTownEvent Triggered when a town is deleted

    Example

    {
      "event": "DeleteTownEvent"
      "data": {
        "town": {
          "name": "Saint-René Le Bon",
          "uuid": "a8cc6321-2b53-41c7-8644-36524cc6e96b"
        },
        "mayor": {
          "name": "Eomelius",
          "uuid": "ad24c6ae-0e5c-4fbd-9968-ddd4d71ef640"
      }
    }
  • DeleteNationEvent Triggered when a nation is deleted

    Example

    {
      "event": "DeleteNationEvent"
      "data": {
        "nation": {
          "name": "ZeUnion",
          "uuid": "a8cc6321-2b53-41c7-8644-36524cc6e96b"
        },
        "king": {
          "name": "ZeMarshadow",
          "uuid": "ad24c6ae-0e5c-4fbd-9968-ddd4d71ef640"
        }
      }
    }

About

Web API for La Boulangerie Minecraft Server. Access public data from Bukkit, Towny, LaBoulangerieMMO and other with ease.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages