Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

289 saas connector headers #327

Merged
merged 20 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions data/saas/config/mailchimp_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ saas_config:
connector_param: api_key

test_request:
method: GET
path: /3.0/lists
pattisdr marked this conversation as resolved.
Show resolved Hide resolved

endpoints:
- name: messages
requests:
read:
method: GET
path: /3.0/conversations/<conversation_id>/messages
request_params:
param_values:
- name: conversation_id
type: path
references:
- dataset: mailchimp_connector_example
field: conversations.id
Expand All @@ -46,16 +47,15 @@ saas_config:
- name: conversations
requests:
read:
method: GET
path: /3.0/conversations
request_params:
query_params:
- name: count
type: query
default_value: 1000
value: 1000
- name: offset
type: query
default_value: 0
value: 0
param_values:
- name: placeholder
type: query
identity: email
data_path: conversations
pagination:
Expand All @@ -67,23 +67,25 @@ saas_config:
- name: member
requests:
read:
method: GET
path: /3.0/search-members
request_params:
query_params:
- name: query
type: query
value: <email>
param_values:
- name: email
identity: email
data_path: exact_matches.members
update:
method: PUT
path: /3.0/lists/<list_id>/members/<subscriber_hash>
request_params:
param_values:
- name: list_id
type: path
references:
- dataset: mailchimp_connector_example
field: member.list_id
direction: from
- name: subscriber_hash
type: path
references:
- dataset: mailchimp_connector_example
field: member.id
Expand Down
64 changes: 38 additions & 26 deletions data/saas/config/saas_example_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ saas_config:
connector_param: api_key

test_request:
method: GET
path: /3.0/lists

endpoints:
- name: messages
requests:
read:
method: GET
path: /3.0/conversations/<conversation_id>/messages
request_params:
param_values:
- name: conversation_id
type: path
references:
- dataset: saas_connector_example
field: conversations.id
Expand All @@ -50,16 +51,15 @@ saas_config:
- name: conversations
requests:
read:
method: GET
path: /3.0/conversations
request_params:
query_params:
- name: count
type: query
default_value: 1000
value: 1000
- name: offset
type: query
default_value: 0
value: 0
param_values:
- name: placeholder
type: query
identity: email
postprocessors:
- strategy: unwrap
Expand All @@ -68,73 +68,85 @@ saas_config:
- name: member
requests:
read:
method: GET
path: /3.0/search-members
request_params:
query_params:
- name: query
type: query
value: <email>
param_values:
- name: email
identity: email
data_type: string
postprocessors:
- strategy: unwrap
configuration:
data_path: exact_matches.members
update:
method: PUT
path: /3.0/lists/<list_id>/members/<subscriber_hash>
request_params:
param_values:
- name: list_id
type: path
references:
- dataset: saas_connector_example
field: member.list_id
direction: from
- name: subscriber_hash
type: path
references:
- dataset: saas_connector_example
field: member.id
direction: from
- name: payment_methods
requests:
read:
method: GET
path: /<version>/payment_methods
request_params:
headers:
- name: Content-Type
value: application/json
- name: On-Behalf-Of
value: <email>
- name: Token
value: Custom <api_key>
query_params:
- name: limit
value: <limit>
- name: query
value: <email>
param_values:
- name: limit
type: query
connector_param: page_limit
- name: version
type: path
connector_param: api_version
- name: query
type: query
- name: email
identity: email
- name: api_key
connector_param: api_key
update:
method: PUT
path: /<version>/payment_methods
request_params:
param_values:
- name: version
type: path
connector_param: api_version
- name: projects
requests:
read:
method: GET
path: /api/0/projects/
request_params:
param_values:
- name: placeholder
type: query
identity: email
- name: user_feedback
requests:
read:
method: GET
path: /api/0/projects/<organization_slug>/<project_slug>/user-feedback/
grouped_inputs: [ organization_slug, project_slug ]
request_params:
param_values:
- name: organization_slug
type: path
references:
- dataset: saas_connector_example
field: projects.organization.slug
direction: from
- name: project_slug
type: path
references:
- dataset: saas_connector_example
field: projects.slug
Expand Down
Loading