In this scenario, using Insert on DB-2-API in Apinizer Platform will be explained.

Click for more information about creating DB-2-API.

1. Creating DB-2-API

It is desired to create an API where worker records are managed.

The name and description fields of the DB-2-API are filled in and the Save and Next button is clicked.

The picture below shows the DB-2-API settings:

When DB-2-API is created, API and endpoint information are displayed on the left panel, and endpoint definition information is on the right.

2. Creating Endpoints

By clicking the Add button, the method/endpoint creation panel opens.

The picture below shows the endpoint creation settings:

The required parameters can be entered and the query written with the Try It button can be tried.

The picture below shows the template returned as a result of the test:

3. Viewing API Definition Documents

In order to access the API definition files of Employee Db-2-API, the Show Specs link is clicked.

The picture below shows the Spec Information dialog:

4. Creating API Proxy

API Proxy can be created instantly by clicking the Create API Proxy button on the DB-2-API screen.

While creating the API Proxy, fill in the input fields in the image below and click the Save button.

4.1 Go Live API Proxy

Employee API Proxy can be quickly deployed on the defined environment and opened for consumption by clients.

The management of this process can be done through the dialog opened with the Deploy button on the API Proxy screen.

5. Testing

When the condition defined in /post endpoint is sent without adding the request, the following error is returned.

The following response is returned when the conditions defined in /post endpoint are added to the request and run.