Sign inSign up

anrop/anrop-squad

By anrop

•Updated over 5 years ago

API handling Arma Squad members from Anrop Edit Add topics

Image
0

1.7K

anrop/anrop-squad repository overview

⁠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.

KeyRequiredDescription
DATABASE_URLYesMySQL url to your Anrop database
PORTNoPort 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

Tag summary

Content type

Image

Digest

Size

9.7 MB

Last updated

over 5 years ago

docker pull anrop/anrop-squad