{% extends "test_app/base.html" %} {% block page_header %} Django LTS v4.2 - 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.
Url:
http://127.0.0.1:8000/test_app/api/parse/
Get Params:
test-param-1=Abc&test-param-2=123
Header Token:
MyExampleHeaderAuthToken-112233445566778899ABABCDCD
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", "token": "MyExampleHeaderAuthToken-112233445566778899ABABCDCD" } data: { "test": true, "Aaa": "Bbb", "MyNumber": 5 }{% endblock content %}