From 0084bca673ad2bf7f2aa8d32ab2e2bf5233e633d Mon Sep 17 00:00:00 2001 From: Jan Eger Date: Thu, 1 Apr 2021 09:27:01 +0200 Subject: [PATCH] added examples for onPlace, onMatch, onComplete, onDelete --- src/order/dtos/PlaceOrder.dto.ts | 8 ++++---- src/order/schemas/Order.schema.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/order/dtos/PlaceOrder.dto.ts b/src/order/dtos/PlaceOrder.dto.ts index 4e5c31f..847f043 100644 --- a/src/order/dtos/PlaceOrder.dto.ts +++ b/src/order/dtos/PlaceOrder.dto.ts @@ -15,25 +15,25 @@ export class PlaceOrderDto { @ApiProperty({ description: 'POST Request URL to notify broker when order is placed.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onPlace', }) onPlace: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is matched.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onMatch', }) onMatch: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is completed.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onComplete', }) onComplete: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is deleted.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onDelete', }) onDelete: string; diff --git a/src/order/schemas/Order.schema.ts b/src/order/schemas/Order.schema.ts index c7a67c2..85e223a 100644 --- a/src/order/schemas/Order.schema.ts +++ b/src/order/schemas/Order.schema.ts @@ -48,28 +48,28 @@ export class Order extends Document { @ApiProperty({ description: 'POST Request URL to notify broker when order is placed.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onPlace', }) @Prop() onPlace: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is matched.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onMatch', }) @Prop() onMatch: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is completed.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onComplete', }) @Prop() onComplete: string; @ApiProperty({ description: 'POST Request URL to notify broker when order is deleted.', - example: "ASA there's one", + example: 'http://request.url.net:8082/webhook/onDelete', }) @Prop() onDelete: string;