REST-API
ODIN Fleet by 4Players is a full service solution to deploy and manage game servers. Find out more about ODIN Fleet on the product page.
The ODIN Fleet REST-API allows you to interact with the ODIN Fleet platform programmatically. You can use the API to automate game server deployment and management, integrate ODIN Fleet into your CI/CD workflows, and more.
Documentation
We offer a nice interface to learn more about data structures and available routes.
View DocumentationAuthentication
In order to use the ODIN Fleet REST-API, you need to authenticate your requests. You can do this by providing an API key
in the Authorization header of your HTTP requests.
Sign in to the ODIN Fleet dashboard and follow these simple steps to obtain your access token:
- Sign in to our dashboard.
- Choose an app or create one
- Go to the settings of the app
- Click on the API-Key section
- Copy the access token and use it in your requests
Generating API Clients
We provide an OpenAPI specification that you can use to generate API clients for your preferred programming language.
The repository is intended to provide an example of how to generate different clients from the OpenAPI definition for the ODIN Fleet API. It may be necessary to modify it to suit your specific needs.
Prerequisites
openapi-generator-cliinstalledJDKversion 11 or higher
Usage
- Clone the fleet-api repository
- Replace
<generator>in theMakefilewith your desired generator - Run
make
The Makefile expects a Unix environment. For Windows the individual commands should more or less still apply.
Supported Languages
In general any language supported by the openapi-generator should work — if not out of the box, with minor tweaks. The following generators have been tested:
| Language | Status | Additional Options |
|---|---|---|
typescript-angular | Supported | |
typescript-fetch | Supported | |
go | Supported | --additional-properties structPrefix=true,enumClassPrefix=true |