Skip to content

Commit

Permalink
added examples for onPlace, onMatch, onComplete, onDelete
Browse files Browse the repository at this point in the history
  • Loading branch information
egerj committed Apr 1, 2021
1 parent 82ac140 commit 0084bca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/order/dtos/PlaceOrder.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions src/order/schemas/Order.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0084bca

Please sign in to comment.