module
Version:
v0.0.0-...-53711f0
Opens a new window with list of versions in this module.
Published: Oct 19, 2023
License: MIT
Opens a new window with license information.
README
¶
API Walk
Dependencies
Commands
- Build
go build -o ./build/apiwalk ./cmd/apiwalk
- Run
CONFIG_PATH=./config/config.example.yaml ./build/apiwalk
Routes
- GET
/
- basic output
- POST
/user
- register user
- DELETE
/user/:userId
- delete user
- GET
/:userId/walk
- get user's walk sessions
- POST
/:userId/walk/start
- start a walk
- POST
/:userId/walk/stop
- stop the current walk
- POST
/:userId/walk/:walkId
- put coordinates for a current walk
- GET
/:userId/walk/:walkId
- get route of a walk as coordinates list
- DELETE
/:userId/walk/:walkId
- delete a walk route
Directories
¶
cmd
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.