Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mkubasz/duckshop_api

Repository files navigation

Duck shop API

Api for mobile application to control your shop list, bucket and money. Used Fastify + CQRS + DDD.

How to run

yarn install

yarn start

Endpoints

{
  "version": "0.0.1",
  "endpoints" : {
    "buckets" : {
      "routes" : [
        {"link":  "/buckets", "method":  "GET", "description":  "Return all buckets"},
        {"link":  "/buckets", "method":  "POST", "description":  "Create new bucket"},
        {"link":  "/buckets/:id", "method":  "GET", "description":  "Return one bucket"},
        {"link":  "/buckets/:id/products", "method":  "GET", "description":  "Return all products from selected bucket"},
        {"link":  "/buckets/:id/products", "method":  "POST", "description":  "Create new product in bucket"},
        {"link":  "/buckets/:id/products/:id", "method":  "GET", "description":  "Return product from bucket"},
        {"link":  "/buckets/:id/products/:id/save", "method":  "POST", "description":  "Save product as template"},
        {"link":  "/buckets/:id/products/:id/buy", "method":  "GET", "description":  "Select as bought product"},
        {"link":  "/buckets/:id/close", "method":  "GET", "description":  "Closed bucket/ Archive bucket"},
        {"link":  "/buckets/:id/share", "method":  "GET", "description":  "Shared bucket with others"}
      ]
    }
  }
}

About

Api for Shoplist application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published