SquareAPI is a API that lets you call other simple APIs. There is no particular advantage for this but if you want to create a frontend for this which gets the SquareAPI used to make a API tester you can use it.
Warning
SquareAPI is archived and no longer maintained. It is archived, but it is still usable.
Install requirements:
pip install -r requirements.txtStart server:
fastapi dev appSend a request to the API at the root as:
{
"url": "string",
"method": "string",
"headers": {
"string": "string"
},
"params": {
"string": "any"
},
"body": "any",
"bearer_token": "string"
}"method" should be one of "GET", "POST", "PUT", "PATCH", or "DELETE".
Defaults:
{
"url": "no default",
"method": "GET",
"headers": {},
"params": {},
"body": {},
"bearer_token": null
}The response will be like:
{
"success": "boolean",
"status_code": "int",
"headers": {
"string": "string"
},
"body": "any"
}This API is licensed under the MIT License.