You can now build an HTTP connector using the available Postman collection schemas. This article is not about connecting to an HTTP connector or using a connection API endpoint to create, update, or delete an existing connection. This article and the accompanying Postman collection schemas will allow you to build an HTTP connector you can then use to create a connection to a third-party application.
To build your connector, download the Postman file, configure the schemas, and post them to the following APIs:
-
https://api.integrator.io/v1/httpconnectors/
-
https://api.integrator.io/v1/httpconnectorresources/
-
https://api.integrator.io/v1/httpconnectorendpoints/
OR for EU:
-
https://api.eu.integrator.io/v1/httpconnectors/
-
https://api.eu.integrator.io/v1/httpconnectorresources/
-
https://api.eu.integrator.io/v1/httpconnectorendpoints/
Warning
-
You must create your connector in the following order:
-
Connector
-
Resource
-
Endpoint
-
-
You can only create one connector, resource, and/or endpoint at a time. For example, if you want to create 3 resources with 5 endpoints each, you need to create each individual resource and endpoint separately. Do not attempt to create multiple resources or endpoints in one API call.
You may want to learn more about the HTTP connector schemas before creating your connector.
-
Download the Postman collection and open the
httpconnectors
schema. -
Create the connector using the schema.
-
Method:
POST
-
Relative URI:
/httpconnectors
-
Request body: Provide the configured schema details as the request body.
-
Important
After sending the API call, save the connector ID and connector version IDs (_id
and versions[*]._id
) from the response. You’ll need them to create a resource.
Warning
Do not attempt to create multiple connectors in the same API call. If you want to create multiple connectors you need to create them individually, meaning one API call for each connector. Do not create multiple connectors in one API call.
-
Make a
GET
call to retrieve the connector ID from your list of HTTP connectors.-
Method:
GET
-
Relative URI:
/httpconnectors
-
-
Make a “get by ID” call to retrieve the connector’s details.
-
Method:
GET
-
Relative URI:
/httpconnectors/<connectorID>
-
-
Update your connector details in any editor.
-
Make a PUT call to update your modified connector.
-
Method:
PUT
-
Relative URI:
/httpconnectors/<connectorID>
-
Request body: Provide the edited details fetched from step 2.
Tip
Check the response body to validate your changes.
-
-
Ensure that there are no corresponding changes needed for the resources or endpoints.
-
Download the Postman collection and open the
httpconnectorresources
schema. -
Create the connector’s resource using the schema.
-
Method:
POST
-
Relative URI:
/httpconnectorresources
-
Request body: Provide the configured schema details as the request body.
-
Provide the connector ID and connector version ID that you saved when you created the connector.
-
-
Important
After sending the API call, save the connector, connector version, and resource IDs from the responses. You’ll need them to create an endpoint.
Warning
Do not attempt to create multiple resources in the same API call. If you want to create multiple resources you need to create them individually, meaning one API call for each resource. Do not create multiple resources in one API call.
-
Make a
GET
call to retrieve the resource ID from your list of HTTP resources.-
Method:
GET
-
Relative URI:
/httpconnectorresources
-
-
Make a “get by ID” call to retrieve the resource’s details.
-
Method:
GET
-
Relative URI:
/httpconnectorresources/<resourceID>
-
-
Update your resource details in any editor.
-
Make a
PUT
call to update your modified resource.-
Method:
PUT
-
Relative URI:
/httpconnectors/<resourceID>
-
Request body: Provide the edited details fetched from step 2.
Tip
Check the response body to validate your changes.
-
-
Ensure that there are no corresponding changes needed for the endpoints.
-
Download the Postman collection and open the
httpconnectorendpoints
schema. -
Create the connector’s endpoint using the
httpconnectors
schema.-
Method:
POST
-
Relative URI:
/httpconnectorendpoints
-
Request body: Provide the configured schema details as the request body.
-
Provide the connector, connector version, and resource IDs that you saved when you created the connector and resource.
-
-
Warning
Do not attempt to create multiple endpoints in the same API call. If you want to create multiple endpoints, you need to create them individually, meaning one API call for each endpoint. Do not create multiple endpoints in one API call.
-
Make a
GET
call to retrieve the endpoint ID from your list of HTTP endpoints.-
Method:
GET
-
Relative URI:
/httpconnectorendpoints
-
-
Make a “get by ID” call to retrieve the endpoint’s details.
-
Method:
GET
-
Relative URI:
/httpconnectorendpoints/<endpointID>
-
-
Update your endpoint details in any editor.
-
Make a
PUT
call to update your modified endpoint.-
Method:
PUT
-
Relative URI:
/httpconnectors/<endpointID>
-
Request body: Provide the edited details fetched from step 2.
Tip
Check the response body to validate your changes.
-
Comments
0 comments
Article is closed for comments.