Submit a POST request with the source text included in the body.
A summary ID will be returned.
Submit a GET request with the summary ID in the URL.
However, if we change GET by POST in step 3, the API crashes:
TypeError: post() got an unexpected keyword argument 'summary_id'
To Reproduce
Submit a POST request to e.g. the following URL: https://api.jizt.it/v1/summaries/plain-text/b181474570ea6a29c2851941e60edb3d26e4225fc80d9fa73acf7bb35c8792fc.
Expected behavior
The server handles this situation nicely, for example by returning a 400 Bad Request.
Describe the bug
However, if we change GET by POST in step 3, the API crashes:
To Reproduce
https://api.jizt.it/v1/summaries/plain-text/b181474570ea6a29c2851941e60edb3d26e4225fc80d9fa73acf7bb35c8792fc
.Expected behavior The server handles this situation nicely, for example by returning a
400 Bad Request
.