api-rest-go

command module
v0.0.0-...-0d863c4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

API Go

API in Go with JWT and MySql

Available endpoints:

  • /api/v1/users

    • /register (POST): create a new User
    • /login (GET): get a JWT user token
  • /api/v1/tasks

    • / (POST): create a new task (must be logged)
    • /{id} (GET): get a task by taskID (must be logged)

To run this project (setup the db with docker compose up):

make run

To test this project:

make test

Build by 🛠️

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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