DronaHQ now offers a super easy way to create an API just by uploading data, or even without any data. Creating an API sometimes takes a lot of time. While configuring all those routes and middlewares, we often lose time for other important tasks. Now you can focus on other tasks, and for the API part, Api-generator comes to rescue. You can generate RestAPI or GraphQL API. Get started today!
The process
The process is quite simple
- Choose input data for your API, it can be
-
CSV File: Upload your data in form of a CSV file
-
Raw JSON: Paste your data in form of raw JSON
-
auto generated data: This option allows generating random data, when number of rows are specified ( max 100 rows at a time).
- Click next, give your API a name and generate an API (REST or GraphQL).
Uploading Data
- Upload CSV file or Raw JSON data. In case you want to use dummy data, use Auto generate Data.
- Click next
Rest API
Generating API
- Now give an API name and click on Generate Api
Note: Your sample API will be deleted if it has not been used in the last 30 days
API Endpoints
Once your API is created, there will be many HTTP method endpoints like
OpenAPI Specs JSON
You can download the OpenAPI 3.0 spec below. You can import the json file after adding the connector on DronaHQ to auto add all these APIs. Simply click on the Download OpenAPI 3.0 Specs JSON Button and you will get the JSON file. Check out this article to see how you can import your API on dronaHQ using OpenAPI specs.
GraphQL API
Generating API
- GraphQL API option shows up while using CSV file upload or Auto generate Data
Note: Your sample API will be deleted if it has not been used in the last 30 days
API Endpoints
In GraphQL, there are only two types of operations you can perform: queries and mutations. If queries are the GraphQL equivalent to GET calls in REST, then mutations represent the state-changing methods in REST (like DELETE, PUT, PATCH, etc).
Integrating API with DronaHQ
Rest API
- It can be done simply by creating a connector of Rest API. Find out a more detailed article here
GraphQL API
- It can be done simply by creating a connector of GraphQL. Find out a more detailed article here.