-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
Mathieu edited this page May 16, 2022
·
20 revisions
This section applies for clients endpoints.
//Method type : [GET]
/clients/Return
Jsonof every client
//Method type : [GET]
/clients/:idReturn
Jsonof a specify client by itsID.
This method allows you to create a new client.
//Method type : [POST]
/clients/createNon-nullable parameters :
@IsEmail()
email: string;
@IsNotEmpty()
firstname: string;
@IsNotEmpty()
lastname: string;This section applies for products endpoints.
//Method type : [GET]
/products/Return
Jsonof every product
//Method type : [GET]
/products/:idReturn
Jsonof a specify product by itsID.
This method allows you to create a new product.
//Method type : [POST]
/products/createNon-nullable parameters :
@IsNotEmpty()
name: string;
published: boolean;
qrcode: string;
@IsNumber()
price: Decimal;
@IsDate()
warrantyExpiresOn: Date;This method allows you to exetend a product's warranty.
//Method type : [POST]
/products/warranty/extend/Non-nullable parameters :
@IsNotEmpty()
id: string;
@IsNumber()
delay: number;This method allows you to retrieve a product for a specify user.
//Method type : [POST]
/products/retrieve/Non-nullable parameters :
@IsNotEmpty()
qrcode: string;
@IsNotEmpty()
ownerId: string;