Use public Pawprint API
Using the public API you can create new Pawprints from har and raw files, grant access right for your Pawprints to other users and delete Pawprints.
Create Pawprint
Create Pawprint
To create a Pawprint make a POST request to paw.cloud/api/v3/pawprints
with the HAR (HTTP Archive) or raw HTTP exchange in the body.
For HAR (HTTP Archive):
{
"name": "My Paw Print",
"har_file": {}
}
For raw HTTP exchange:
{
"name": "My Paw Print",
"raw_http_file": {
"http_request": "[[raw http request string]]",
"http_response": "[[raw http response string]]"
}
}
Create a private Pawprint
Create a private Pawprint
To create a private Pawprint add a field private: true
to your JSON body.
Grant access rights
Grant access rights
If you want to grant access rights for your private Pawprint to other users, you can create a JWT that includes the required scopes.
{
"pawpt_id": "pawpt_raw_id",
"scopes": ["read", "update", "delete"],
"exp": 1479978243,
"nonce": "random nonce"
}
This token can be added to the URL as a parameter token=
or to the Authorization header as Bearer=
.
Delete Pawprint
Delete Pawprint
To delete your Pawprint send a DELETE request to paw.cloud/api/v3/pawprints/{pawprint_id}
with the delete token as a parameter token=
.
On creation of the Pawprint the response contains a delete_link
that can be used. Otherwise, you can construct the token yourself as described above.