Skip to content

Backend do "Nebulon", Projeto do 3° Semestre de ADS em 2024

Notifications You must be signed in to change notification settings

Byte-Boost/Backend_Nebulon

Repository files navigation

🌀Nebulon Dashboard - Backend

header-nebulon-db


Commissions (Endpoint)

Commissions são vendas de um produto a um cliente, feitas por um vendedor.

GET - /commissions Response example:
[
	{
		"id": 1,
		"date": "2000-01-01T00:00:00.000Z",
		"value": 10,
		"paymentMethod": "Installments",
		"clientId": 1,
		"productId": 1,
		"sellerId": 1,
	}
]
GET - /commissions/{id} Response example:
{
	"id": 1,
	"date": "2000-01-01T00:00:00.000Z",
	"value": 10,
	"paymentMethod": "Installments",
	"clientId": 1,
	"productId": 1,
	"sellerId": 1,
}
POST - /commissions Request body example:
{
	"date": "2000-01-01",
	"value": 10,
	"paymentMethod": "Installments",
	"clientId": 1,
	"productId": 2,
	"sellerId": 1
}
PUT - /commissions/{id} Request body example:
{
	"date": "2000-01-01",
	"value": 10,
	"paymentMethod": "Installments",
	"clientId": 1,
	"productId": 2,
	"sellerId": 1
}
DELETE - /commissions/{id}

Retorna Status Code 200

Commission (Type)

name Description Type
id The identifier for this resource. integer
date Date/time of recording integer
value Total value of commission in R$ float
paymentMethod Payment method string
clientId Commission's client identifier integer
productId Commission's product identifier integer
sellerId Commission's seller identifier integer

About

Backend do "Nebulon", Projeto do 3° Semestre de ADS em 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •