Skip to content

Latest commit

 

History

History
74 lines (41 loc) · 1.56 KB

GameApi.md

File metadata and controls

74 lines (41 loc) · 1.56 KB

\GameApi

All URIs are relative to http://localhost:3000/api

Method HTTP request Description
GetPlayer Get /player Get Player
PostMoves Post /moves Create Move

GetPlayer

InlineResponse202 GetPlayer(ctx, )

Get Player

Get player information

Required Parameters

This endpoint does not need any parameter.

Return type

InlineResponse202

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostMoves

InlineResponse202 PostMoves(ctx, direction)

Create Move

Create a player move

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
direction string The direction to move

Return type

InlineResponse202

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]