Anrop-Squad

command module
v0.0.0-...-03cefae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 10 Imported by: 0

README

Anrop Squad API

Returns squad members on Anrop for Arma games.

Requirements

Code is written in Go and uses Go modules for dependency management.

How To Use

Use go build to download all dependencies and compile the sources.

Start the API with the Anrop-Squad binary. Server will be available at $PORT.

Environment Variables

Environment variables can be specified in .env file and will be autoloaded.

Key Required Description
DATABASE_URL Yes MySQL url to your Anrop database
PORT No Port that HTTP Server is bound to. 8080 by default

Endpoints

/arma1.json

Returns Arma 1 squad members as JSON

/arma2.json

Returns Arma 2 squad members as JSON

/arma3.json

Returns Arma 3 squad members as JSON

/ofp.json

Returns OFP squad members as JSON

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL