Skip to content

Latest commit

 

History

History
128 lines (80 loc) · 2.55 KB

File metadata and controls

128 lines (80 loc) · 2.55 KB

Go M.U.D - API

Dungeons

List dungeons:

GET /api/v1/dungeons

Get dungeon:

GET /api/v1/dungeons/{:dungeon_id}

Locations

List dungeon locations:

GET /api/v1/dungeons/{:dungeon_id}/locations

Get dungeon location:

GET /api/v1/dungeons/{:dungeon_id}/locations/{:location_id}

Characters

Create character:

POST /api/v1/characters

List characters:

GET /api/v1/characters

Get character:

GET /api/v1/characters/{:character_id}

Update a character:

📝 Unimplemented

PUT /api/v1/characters/{:character_id}

Dungeon characters

Dungeon instances are created to accomodate a maximum number of characters per dungeon.

Enter dungeon:

A character enters into a dungeon.

POST /api/v1/dungeons/{:dungeon_id}/character/{:character_id}/enter

Exit dungeon:

A character exits from a dungeon.

POST /api/v1/dungeons/{:dungeon_id}/character/{:character_id}/exit

Get dungeon character:

Lists the currently running dungeon instances.

GET /api/v1/dungeons/{:dungeon_id}/characters/{:character_id}

Actions

Characters are controlled by performing actions.

Create a character action:

POST /api/v1/dungeons/{:dungeon_id}/characters/{:character}/actions