A visual API mapping tool that simplifies complex service integrations with a drag-and-drop interface and automatic code generation. Visit the tool's page to test the tool live.
- Method: Query Parameter
- Parameter:
demo-token - Valid Token:
12345678
Retrieves user information.
Request:
GET /user?demo-token=12345678Response (200 OK):
{
"first_name": "John",
"last_name": "Demoguy",
"user_email": "demoguy@john.me.ce"
}Submits user information.
Request:
POST /user?token=12345678
Content-Type: application/json
{
"first_name": "John",
"last_name": "Doe",
"user_email": "john.doe@example.com"
}Response (201 Created):
{
"message": "User data received"
}- Method: HTTP Header
- Header:
Demo-Token - Valid Token:
12345678
Retrieves user information.
Request:
POST /get-user
Content-Type: application/json
Demo-Token: 12345678
{}Response (200 OK):
{
"firstname": "John",
"lastname": "Demoguy",
"email": "john.demoguy@ademo.com"
}Submits user information.
Request:
POST /update-user
Content-Type: application/json
Demo-Token: 12345678
{
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com"
}Response (201 Created):
{
"message": "Payload received"
}- Method: HTTP Header
- Header:
Demo-Token - Valid Token:
12345678
Retrieves user information.
Request:
GET /user
Demo-Token: 12345678Response (200 OK):
{
"firstname": "John",
"lastname": "Demoguy",
"email": "john.demoguy@ademo.com"
}- Ensure you have Python and Flask installed
- Install the required dependencies:
pip install flask
- Run each API in a separate terminal:
python api_1.py # Runs on port 8081 python api_2.py # Runs on port 8082 python api_3.py # Runs on port 8083
You can test the APIs using curl or any API testing tool like Postman. Here are some example curl commands:
# GET request
curl "http://localhost:8081/user?demo-token=12345678"
# POST request
curl -X POST -H "Content-Type: application/json" -d '{"first_name":"John","last_name":"Doe","user_email":"john.doe@example.com"}' "http://localhost:8081/user?demo-token=12345678"# GET user data
curl -X POST -H "Content-Type: application/json" -H "Demo-Token: 12345678" -d '{}' http://localhost:8082/get-user
# POST user data
curl -X POST -H "Content-Type: application/json" -H "Demo-Token: 12345678" -d '{"name":"John","surname":"Doe","email":"john.doe@example.com"}' http://localhost:8082/update-user# GET request
curl -H "Demo-Token: 12345678" http://localhost:8083/user- All APIs implement different authentication methods (query parameter, JSON payload, and header)
- Each API runs on a different port (8081, 8082, 8083)
- The APIs are for demonstration purposes only and should not be used in production