Skip to content

Commit

Permalink
Handle body and response generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nalanj committed Dec 9, 2024
1 parent 09c0ae1 commit 6860df2
Show file tree
Hide file tree
Showing 215 changed files with 5,909 additions and 423 deletions.
13 changes: 11 additions & 2 deletions integrations/aircall-basic/actions/create-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
```

### Request Response

```json
JSON GOES HERE
{
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>"
}
```

## Endpoint Setup Guide
Expand Down
8 changes: 6 additions & 2 deletions integrations/aircall-basic/actions/delete-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"id": "<string>"
}
```

### Request Response

```json
JSON GOES HERE
{
"success": "<boolean>"
}
```
44 changes: 42 additions & 2 deletions integrations/airtable/actions/create-webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,51 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"baseId": "<string>",
"specification": {
"options": {
"filters": {
"recordChangeScope?": "<string>",
"dataTypes": [
"<string>"
],
"changeTypes?": [
"<string>"
],
"fromSources?": [
"<string>"
],
"sourceOptions?": {
"formPageSubmission?": {
"pageId": "<string>"
},
"formSubmission?": {
"viewId": "<string>"
}
},
"watchDataInFieldIds?": [
"<string>"
],
"watchSchemasOfFieldIds?": [
"<string>"
]
},
"includes?": {
"includeCellValuesInFieldIds?": "<string[] | all>",
"includePreviousCellValues:?": "<boolean>",
"includePreviousFieldDefinitions?": "<boolean>"
}
}
}
}
```

### Request Response

```json
JSON GOES HERE
{
"id": "<string>",
"expirationTime": "<string>"
}
```
9 changes: 7 additions & 2 deletions integrations/airtable/actions/delete-webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"baseId": "<string>",
"webhookId": "<string>"
}
```

### Request Response

```json
JSON GOES HERE
{
"success": "<boolean>"
}
```
53 changes: 51 additions & 2 deletions integrations/airtable/actions/list-webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,60 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"baseId": "<string>"
}
```

### Request Response

```json
JSON GOES HERE
{
"webhooks": [
{
"id": "<string>",
"areNotificationsEnabled": "<boolean>",
"cursorForNextPayload": "<number>",
"isHookEnabled": "<boolean>",
"lastSuccessfulNotificationTime": "<string | null>",
"expirationTime?": "<string | undefined>",
"specification": {
"options": {
"filters": {
"recordChangeScope?": "<string>",
"dataTypes": [
"<string>"
],
"changeTypes?": [
"<string>"
],
"fromSources?": [
"<string>"
],
"sourceOptions?": {
"formPageSubmission?": {
"pageId": "<string>"
},
"formSubmission?": {
"viewId": "<string>"
}
},
"watchDataInFieldIds?": [
"<string>"
],
"watchSchemasOfFieldIds?": [
"<string>"
]
},
"includes?": {
"includeCellValuesInFieldIds?": "<string[] | all>",
"includePreviousCellValues:?": "<boolean>",
"includePreviousFieldDefinitions?": "<boolean>"
}
}
},
"lastNotificationResult": "<NotificationResult | null>"
}
]
}
```
12 changes: 10 additions & 2 deletions integrations/algolia/actions/create-contacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"name": "<string>",
"company": "<string>",
"email": "<string>"
}
```

### Request Response

```json
JSON GOES HERE
{
"createdAt": "<date>",
"taskID": "<number>",
"objectID": "<string>"
}
```
87 changes: 85 additions & 2 deletions integrations/anrok/actions/create-ephemeral-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,94 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
}
```

### Request Response

```json
JSON GOES HERE
{
"succeeded": [
{
"__extends": {
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
},
"sub_total_excluding_taxes?": "<number>",
"taxes_amount_cents?": "<number>"
}
],
"failed": [
{
"__extends": {
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
},
"validation_errors": "<any>"
}
]
}
```
91 changes: 89 additions & 2 deletions integrations/anrok/actions/create-or-update-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,98 @@ _No request parameters_
### Request Body

```json
JSON GOES HERE
{
"input": [
{
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
}
]
}
```

### Request Response

```json
JSON GOES HERE
{
"succeeded": [
{
"__extends": {
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
},
"sub_total_excluding_taxes?": "<number>",
"taxes_amount_cents?": "<number>"
}
],
"failed": [
{
"__extends": {
"__extends": {
"id?": "<string | undefined>",
"issuing_date": "<string>",
"currency": "<string>",
"contact": {
"external_id": "<string>",
"name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>",
"taxable": "<boolean>",
"tax_number": "<string>"
}
},
"fees": [
{
"item_id": "<string>",
"item_code": "<string | null>",
"amount_cents": "<number | null>"
}
]
},
"validation_errors": "<any>"
}
]
}
```
Loading

0 comments on commit 6860df2

Please sign in to comment.