Skip to content

zarszz/product-api

Repository files navigation

Product API

Overview

The Product API is a RESTful API that allows you to manage products. It provides endpoints for creating, retrieving, updating, and deleting products. The API is designed to be create, read, update, and delete (CRUD) operations on products alongside with the transaction of the product.

Authentication

The API uses token-based authentication. You need to include the token in the Authorization header of each request.

Postman Collection

You can import the Postman collection from the postman directory or the below links to test the API endpoints. https://documenter.getpostman.com/view/7837969/2sAYdeMX4T#intro

How to run the project

  1. Clone the repository:
    git clone
    cd product-api
  2. Create a .env file in the root directory and add your environment variables:
    cp .env.example .env
  3. Install dependencies:
    go mod download
  4. Run the project:
     go run ./cmd/server/main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages