Skip to content

Commit

Permalink
Merge pull request #186 from panoratech/annotate-docs-crmcontact
Browse files Browse the repository at this point in the history
📝 Adding exmaples for GET crm/contact query
  • Loading branch information
rflihxyz authored Dec 20, 2023
2 parents 20f7a30 + ef30d60 commit fca393c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/crm/contact/contact.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ContactController {
})
@ApiQuery({ name: 'integrationId', required: true, type: String })
@ApiQuery({ name: 'linkedUserId', required: true, type: String })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean, description: 'Set to true to include data from the original CRM software.' })
@ApiCustomResponse(ContactResponse)
@Get()
getContacts(
Expand All @@ -55,7 +55,7 @@ export class ContactController {
description: 'Retrive a contact in any supported CRM',
})
@ApiParam({ name: 'id', required: true, type: String })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean, description: 'Set to true to include data from the original CRM software.' })
@ApiCustomResponse(ContactResponse)
@Get(':id')
getContact(
Expand Down Expand Up @@ -96,7 +96,7 @@ export class ContactController {
})
@ApiQuery({ name: 'integrationId', required: true, type: String })
@ApiQuery({ name: 'linkedUserId', required: true, type: String })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean })
@ApiQuery({ name: 'remote_data', required: false, type: Boolean, description: 'Set to true to include data from the original CRM software.' })
@ApiBody({ type: UnifiedContactInput, isArray: true })
@ApiCustomResponse(ContactResponse)
@Post('batch')
Expand Down
3 changes: 3 additions & 0 deletions packages/api/swagger/swagger-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@
"name": "remote_data",
"required": false,
"in": "query",
"description": "Set to true to include data from the original CRM software.",
"schema": {
"type": "boolean"
}
Expand Down Expand Up @@ -803,6 +804,7 @@
"name": "remote_data",
"required": false,
"in": "query",
"description": "Set to true to include data from the original CRM software.",
"schema": {
"type": "boolean"
}
Expand Down Expand Up @@ -861,6 +863,7 @@
"name": "remote_data",
"required": false,
"in": "query",
"description": "Set to true to include data from the original CRM software.",
"schema": {
"type": "boolean"
}
Expand Down

0 comments on commit fca393c

Please sign in to comment.