|
1 | | -# tibiadata-api-go |
| 1 | +# TibiaData API in Golang |
| 2 | + |
| 3 | +[](https://github.com/tibiadata/tibiadata-api-go/blob/main/go.mod) |
| 4 | +[](https://hub.docker.com/r/tibiadata/tibiadata-api-go) |
| 5 | +[](https://hub.docker.com/r/tibiadata/tibiadata-api-go) |
| 6 | +[](https://github.com/tibiadata/tibiadata-api-go/blob/main/LICENSE) |
| 7 | + |
2 | 8 | TibiaData API written in Golang and deployed in container (which contains v3) |
3 | 9 |
|
4 | 10 | Current status of v3 is in beta and information like documentation can be found on [tibiadata.com](https://tibiadata.com/doc-api-v3/v3-beta/). |
| 11 | + |
| 12 | +### Table of Contents |
| 13 | + |
| 14 | +- [How to use](#how-to-use) |
| 15 | + - [Docker-compose](#docker-compose) |
| 16 | + - [Local development](#local-development) |
| 17 | + - [Environment variables](#environment-variables) |
| 18 | +- [API documentation](#api-documentation) |
| 19 | + - [Available endpoints](#available-endpoints) |
| 20 | +- [General information](#general-information) |
| 21 | +- [Credits](#credits) |
| 22 | + |
| 23 | +## How to use |
| 24 | + |
| 25 | +You can either use it in a Docker container or go download the code and deploy it yourself on any server. |
| 26 | + |
| 27 | +Keep in mind that there are restrictions on tibia.com that might impact the usage of the application being hosted yourself. |
| 28 | + |
| 29 | +### Docker-compose |
| 30 | + |
| 31 | +_Information will be added at a later stage._ |
| 32 | + |
| 33 | +### Local development |
| 34 | + |
| 35 | +Build the code on your computer |
| 36 | + |
| 37 | +```console |
| 38 | +docker build -t tibiadata . |
| 39 | +``` |
| 40 | + |
| 41 | +Run your build locally |
| 42 | + |
| 43 | +```console |
| 44 | +docker run -p 127.0.0.1:80:8080/tcp --rm -it tibiadata |
| 45 | +``` |
| 46 | + |
| 47 | +### Environment variables |
| 48 | + |
| 49 | +_Information will be added at a later stage._ |
| 50 | + |
| 51 | +## API documentation |
| 52 | + |
| 53 | +Current status of v3 is in beta and information like documentation can be found on [tibiadata.com](https://tibiadata.com/doc-api-v3/v3-beta/). |
| 54 | + |
| 55 | +There will be autogenerated code-documentation available later on. |
| 56 | + |
| 57 | +### Available endpoints |
| 58 | + |
| 59 | +Those are the current existing endpoints. |
| 60 | + |
| 61 | +- GET `/ping` |
| 62 | +- GET `/health` |
| 63 | +- GET `/v3/characters/character/:character` |
| 64 | +- GET `/v3/creatures` |
| 65 | +- GET `/v3/creatures/creature/:creature` |
| 66 | +- GET `/v3/fansites` |
| 67 | +- GET `/v3/highscores/world/:world` |
| 68 | +- GET `/v3/highscores/world/:world/:category` |
| 69 | +- GET `/v3/highscores/world/:world/:category/:vocation` |
| 70 | +- GET `/v3/killstatistics/world/:world` |
| 71 | +- GET `/v3/spells` |
| 72 | +- GET `/v3/spells/spell/:spell` |
| 73 | +- GET `/v3/spells/vocation/:vocation` |
| 74 | +- GET `/v3/worlds` |
| 75 | +- GET `/v3/worlds/world/:world` |
| 76 | +- GET `/versions` |
| 77 | + |
| 78 | +## General information |
| 79 | + |
| 80 | +Tibia is a registered trademark of CipSoft GmbH. Tibia and all products related to Tibia are copyright by CipSoft GmbH. |
| 81 | + |
| 82 | +## Credits |
| 83 | + |
| 84 | +- Authors: Tobias Lindberg – [List of contributors](https://github.com/tibiadata/tibiadata-api-go/graphs/contributors) |
| 85 | +- Distributed under MIT License |
0 commit comments