apiwalk

module
v0.0.0-...-53711f0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT

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

Jump to

Keyboard shortcuts

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