lowryel / Inventory

go crud API with all the crud functionalities working good

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inventory CRUD API

  • Golang Practice

  • Functions

  • CreateOwnerProduct // Create a product by entering POST

        {
            "name": "Cauliflower",
            "price": 12.00,
            "instock": true,
            "quantity": 4
        }
  • GetProducts // Get all products by issueing a get request to the endpoint GET

  • GetProduct // Get one product by issueing a get request to the endpoint GET

  • DeleteProduct // Delete a product by issueing a Delete request to the endpoint DELETE

  • UpdateProduct // Update a product info by issueing a Put request to the endpoint PUT

        {
            "name": "Appless",
            "price": 10.50,
            "instock": true,
            "quantity": 12
        }
  • CreateUser // Create a user POST

        {
            "username": "username",
            "phone": "0594212599",
            "email": "e2e7w@gmail.com",
            "password": "password",
            "first_name": "Fiden",
            "user_type":"USER" // or ADMIN
        }
  • GetUser // Get a user by issueing a get request to the endpoint GET

  • LoginHandler // Login by issueing a POST request to the endpoint POST

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

New Project Idea

-   An expense tracker API
-   Medium clone API

About

go crud API with all the crud functionalities working good


Languages

Language:Go 97.4%Language:Dockerfile 1.6%Language:HTML 1.0%