Skip to main content
Skip table of contents

Creating Your First REST Datasource

To illustrate creating a Datasource, we'll use a public RESTful API called “Rest countries” as an example: https://restcountries.com/

Just like we did the first time then when we created our first SQL Datasource, we need to head to the Datasources tab in the PocketQuery administration. Here, we can create another Datasource:

Create button in Datasources tab

These are the values we’ll go with for our first REST Query:

Form to create a new Datasource

#

Field

Value

1

Name

REST Countries

2

Type

REST Custom

3

Base URL

https://restcountries.com/v3.1

4

Test path

/all

As http://restcountries.com does not require any authentication, we don’t need to configure any custom headers or parameters. Simply hit “Test connection” after you’ve entered everything, and if PocketQuery can connect, create your Datasource.

Modal with successful connection test

Sweet! We can now fire requests at our new REST Datasource, we’ll just need to create a new Query.

Continue with “Creating Your First REST Query

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.