{% extends "test_app/base.html" %} {% block page_header %} Django - API Send {% endblock page_header %} {% block page_subheader %} API Send Page {% endblock page_subheader %} {% block stylesheets %} {% endblock stylesheets %} {% block content %}
Use this to generate and send test API requests to other projects.
This is the data that was returned after the previous API send.
{% endif %} {% if response_success %}{{ key }}
{{ value }}
{{ key }}
{{ value }}
No return value yet. Submit the API form and the resulting return response will display here.
{% endif %}This is what was sent out from this form, on the previous API call.
{% for key, value in sent_data.items %}{{ key }}
{{ value }}
Below are some example form values to get started.
Url:
http://127.0.0.1:8000/test_app/api/parse/
Get Params:
test-param-1=Abc&test-param-2=123
Header Params:
{"Testing": "Test"}
Payload:
{ "test": true, "Aaa": "Bbb", "MyNumber": 5 }
Above values will send:
url: http://127.0.0.1:8000/test_app/api/parse/?test-param-1=Abc&test-param-2=123 header: { "Accept": "application/json", "Testing": "Test" } data: { "test": true, "Aaa": "Bbb", "MyNumber": 5 }