-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
It's also possible to obtain the documentation generated by postman here. This documentation provides the quick option to test the request via the postman application.

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;//Method type : [GET]
/events/Return
Jsonof every event
//Method type : [GET]
/events/:idReturn
Jsonof a specify event by itsID.
This method allows you to create a new event.
//Method type : [POST]
/events/createNon-nullable parameters :
@IsNotEmpty()
content: string;
@IsNotEmpty()
productId: string;
@IsNotEmpty()
eventTypeId: string;This method allows you to create a new event that oriented as commercial event.
//Method type : [POST]
/events/commercials/createNon-nullable parameters :
@IsNotEmpty()
content: string;
@IsNotEmpty()
productId: string;
@IsNotEmpty()
eventTypeContent: string;
@IsNotEmpty()
action: Decimal;
@IsNotEmpty()
shall_expire_on: Date;The two differences is the values action and shall_expire_on.
shall_expire_on is curently used to set an expiration date to the commercial event. Even if the event shall be immuable, an commercial event could be out dated.
The action is generally an number (pourcentage), please read the action list that are provided by the eventTypeContent.
Example d'utilisation :
{
"content": "Votre garantie peut-être étendue de 20% !",
"productId": "cl39u8d0b0000rof1cxbkaeq4",
"eventTypeContent": "COMMERCIAL_WARRANTY_EXTENDED",
"action": 20,
"shall_expire_on": "2024-05-12T07:36:42.722Z"
}This section applies for blockchains endpoints.
//Method type : [GET]
/blockchains/transactions/:idReturn
Jsonof every transactions made by an product id
Warning, this is an dev option ! More details here.
//Method type : [GET]
/blockchains/generate-keysReturn
Jsonof a specify client by itsID.