Categorygithub.com/Kiril-Poposki1998/GOfiberMiniAPI
modulepackage
0.0.0-20231130204814-15288baf8cd9
Repository: https://github.com/kiril-poposki1998/gofiberminiapi.git
Documentation: pkg.go.dev

# README

Express based API

Build the application with Docker

docker build -t fiber_app .

Run the application

docker run -p 8080:8080 --rm fiber_app 

Types of HTTP requests to paths

GET /api/person - displays every person
GET /api/person/id - displays the person with the id
POST /api/person/id - add the person
PUT /api/person/id - update the person
DELETE /api/person/id - delete the person
POST /auth/register - register a new user
POST /auth/login - login with a user and password

Example login of a user (the same goes for registering):

{
    "username": "user",
    "password: "password"
}

Example of creating/editing a person:

{
    "name": "John",
    "surname": "Doe"
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author