Dropsource connects to external data via REST APIs. If you have data hosted on the web that you want to connect to in your app, or if you need structured data, you will need an API. You can use third party web services or your own APIs, making requests to send and receive data. To build an API request in Dropsource:
- Import an API specification OR use a demo API.
- Authenticate with the API.
- Add a request to a page in your app.
- Send data to the request via parameters.
- Display or process the responses.
If you haven’t set your API up yet, check out the API Tools section for recommended options.
To import an API, you will need to upload or link to an OpenAPI (Swagger) specification that describes the endpoints you want to use in your app. You can import a spec for your own API or for a third party service.
Dropsource will display an indicator of your upload progress – if there are any validation errors you will see details so that you can address the issues and attempt your upload again.
If you’re not sure how to create an API specification or need guidance on creating an API, check out Data and Dropsource for tips on getting started. In order to work in Dropsource, your API and specification will need to meet a few requirements.
Once your API is imported you will see it in the API tab – you can delete or update it from here at any time.
When you update an API, Dropsource will attempt to retain the details of any requests you have in the project. For your reference Dropsource will highlight requests and fields that your update has removed.
Dropsource provides a range of demo APIs you can try out – select one from the drop-down list and add it to your project.
You can use Basic, API Key, and OAuth2 Password authentication in Dropsource.
When you set the authentication details for an API, it applies to all pages in your project.
Once your auth setup is complete you can start building requests.