api-cmangos

command module
v0.0.0-...-88fadfa Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: AGPL-3.0 Imports: 15 Imported by: 0

README

api-cmangos

a rest api for the cmangos core database.

api

examples
create account

Based on the config the Authorization header has to be set to a invite token. Set needInvite in contrib/config.ini.dist.

curl \
  -X POST \
  --header "Authorization: Token <invite-token>" \
  --header "Content-Type: application/json" \
  --data '{"username":"test","password":"test","repeat":"test","email":"test@example.org"}' \
  http://127.0.0.1:5556/account

To create an invite token you have to authenticate yourself first.

curl \
  -X POST \
  --user "<username>:<password>" \
  http://127.0.0.1:5556/account/auth

You will receive a X-Auth-Token header containing a token for further requests.

curl \
  -X POST \
  --header "Authorization: Token <token>" \
  http://127.0.0.1:5556/account/invite

api-cmangos

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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