An open API service indexing awesome lists of open source software.

https://github.com/isebasus/compass

A lightweight minecraft server status API written in Kotlin. WIP
https://github.com/isebasus/compass

kotlin minecraft mongodb netty spring-boot

Last synced: 5 months ago
JSON representation

A lightweight minecraft server status API written in Kotlin. WIP

Awesome Lists containing this project

README

          

# 📜️ Compass [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/isebasus/Archive/blob/master/LICENSE)
A silly lightweight Minecraft server API used for server statuses.

# API Calls
The following describes Compass's API calls.

### Initialization
This API call is used to initialize a server to the API, so that way calls to ping can be cached.

``/v1/init``

##### Response
```
hostname: String,
port: Int,
protocolVersion: Int,
serverVersion: String,
maxPlayerCount: Int,
playerCount: List,
description: String,
favicon: String,
ping: Long,
averagePing: List,
numberOfPings: Long,
status: ServerError
lastClientPing: Long
```

### Ping
This API call is used after initialization, and the call will now use the API cache. The response will also contain a smaller payload.

``/v1/ping``

##### Response
```
playerCount: List,
ping: Long,
averagePing: List,
numberOfPings: Long,
status: ServerError
```