v4.32.1
Generated at2026-10-19 20:10:16 UTC

Failed

26 of 26 tested operations failed
Time limit reached
Cases run558,019across 3 phases
Operations2626 failed
Duration1h 0m
Base URLhttp://0.0.0.0:40075Spechttp://0.0.0.0:40075/Commandst run http://0.0.0.0:40075/ --url http://0.0.0.0:40075 --report-html-path schemathesis-report --max-time 3600 --request-timeout 30 --continue-on-failure --no-shrink --suppress-health-check all --output-sanitize falseSeed225073416969193757854793334258406456243Phases
  1. Examplesskipped
  2. Coveragefailed
  3. Fuzzingfailed
  4. Statefulfailed
Checks
allow_header_conformancecontent_type_conformanceensure_resource_availabilityignored_authmissing_required_header+9 morelessnegative_data_rejectionnot_a_server_errorobject_level_authorizationpositive_data_acceptanceresponse_headers_conformanceresponse_schema_conformancestatus_code_conformanceunsupported_methoduse_after_free

Timeline

Failures found204 total
No new failures forQuiet 34m 7s
Coverage4.6s, 123 found
855ms: POST /authors: Schema-valid request rejected
855ms: POST /authors: Undocumented status code
858ms: POST /authors: Undocumented status code
859ms: PUT /authors: Wrong response to undeclared method
860ms: OPTIONS /authors: Allow header mismatch
1s: POST /authors: Schema-violating request accepted
1.1s: POST /authors: Undocumented status code
1.1s: POST /rpc/search_books: API accepts requests without authentication
1.2s: POST /rpc/search_books: Undocumented status code
1.2s: POST /rpc/search_books: Missing required header accepted
1.2s: POST /rpc/search_books: Schema-violating request accepted
1.2s: PUT /rpc/search_books: Wrong response to undeclared method
1.2s: POST /rpc/search_books: Undocumented status code
1.2s: POST /rpc/search_books: Schema-valid request rejected
1.3s: POST /tags: Missing Content-Type header
1.4s: POST /tags: Undocumented status code
1.4s: PUT /tags: Wrong response to undeclared method
1.4s: OPTIONS /tags: Allow header mismatch
1.4s: POST /tags: Undocumented status code
1.4s: POST /tags: Undocumented status code
1.4s: POST /tags: Undocumented status code
1.4s: POST /tags: Schema-valid request rejected
1.5s: POST /tags: Schema-violating request accepted
1.6s: GET /authors: Schema-valid request rejected
1.6s: GET /authors: Undocumented status code
1.6s: GET /authors: Response violates schema
1.6s: GET /authors: API accepts requests without authentication
1.6s: GET /authors: Missing required header accepted
1.6s: GET /books_with_authors: Schema-valid request rejected
1.6s: GET /books_with_authors: Undocumented status code
1.7s: GET /books_with_authors: API accepts requests without authentication
1.7s: GET /books_with_authors: Missing required header accepted
1.7s: PUT /books_with_authors: Wrong response to undeclared method
1.7s: GET /rpc/search_books: API accepts requests without authentication
1.7s: GET /rpc/search_books: Undocumented status code
1.7s: GET /rpc/search_books: Missing required header accepted
1.7s: GET /rpc/search_books: Schema-violating request accepted
1.7s: GET /rpc/search_books: Undocumented status code
1.8s: GET /tags: Schema-valid request rejected
1.8s: GET /tags: Undocumented status code
1.8s: GET /tags: API accepts requests without authentication
1.8s: GET /tags: Missing required header accepted
1.8s: POST /books: Schema-valid request rejected
1.8s: POST /books: Undocumented status code
1.8s: POST /books: Undocumented status code
1.8s: PUT /books: Wrong response to undeclared method
1.8s: OPTIONS /books: Allow header mismatch
2.2s: POST /books: Schema-violating request accepted
2.4s: POST /rpc/author_stats: API accepts requests without authentication
2.4s: POST /rpc/author_stats: Undocumented status code
2.4s: POST /rpc/author_stats: Missing required header accepted
2.4s: POST /rpc/author_stats: Schema-violating request accepted
2.4s: PUT /rpc/author_stats: Wrong response to undeclared method
2.4s: POST /rpc/author_stats: Undocumented status code
2.4s: POST /rpc/author_stats: Schema-valid request rejected
2.5s: GET /books: Schema-valid request rejected
2.5s: GET /books: Undocumented status code
2.5s: GET /books: Response violates schema
2.5s: GET /books: API accepts requests without authentication
2.5s: GET /books: Missing required header accepted
2.6s: GET /rpc/author_stats: Undocumented status code
2.6s: GET /rpc/author_stats: API accepts requests without authentication
2.6s: GET /rpc/author_stats: Missing required header accepted
2.6s: GET /rpc/author_stats: Schema-violating request accepted
2.6s: GET /rpc/author_stats: Undocumented status code
2.6s: PATCH /authors: Schema-valid request rejected
2.6s: PATCH /authors: Undocumented status code
2.6s: PATCH /authors: Missing required header accepted
2.8s: PATCH /tags: Schema-valid request rejected
2.8s: PATCH /tags: Undocumented status code
2.8s: PATCH /tags: Missing required header accepted
3s: DELETE /authors: Schema-valid request rejected
3s: DELETE /authors: Undocumented status code
3s: DELETE /authors: Missing required header accepted
3s: DELETE /tags: Schema-valid request rejected
3s: DELETE /tags: Undocumented status code
3s: DELETE /tags: Missing required header accepted
3s: POST /book_tags: Undocumented status code
3s: POST /book_tags: Undocumented status code
3s: PUT /book_tags: Wrong response to undeclared method
3s: OPTIONS /book_tags: Allow header mismatch
3s: POST /book_tags: Undocumented status code
3.1s: POST /book_tags: Schema-valid request rejected
3.1s: POST /book_tags: Schema-violating request accepted
3.2s: POST /loans: Schema-valid request rejected
3.2s: POST /loans: Undocumented status code
3.2s: POST /loans: Undocumented status code
3.2s: PUT /loans: Wrong response to undeclared method
3.2s: OPTIONS /loans: Allow header mismatch
3.3s: POST /loans: Schema-violating request accepted
3.4s: POST /rpc/lend_book: Schema-valid request rejected
3.4s: POST /rpc/lend_book: Undocumented status code
3.4s: POST /rpc/lend_book: Undocumented status code
3.4s: POST /rpc/lend_book: Missing required header accepted
3.4s: PUT /rpc/lend_book: Wrong response to undeclared method
3.4s: GET /rpc/lend_book: Wrong response to undeclared method
3.5s: POST /rpc/lend_book: Undocumented status code
3.6s: GET /book_tags: Schema-valid request rejected
3.6s: GET /book_tags: Undocumented status code
3.6s: GET /book_tags: API accepts requests without authentication
3.6s: GET /book_tags: Missing required header accepted
3.6s: GET /loans: Schema-valid request rejected
3.6s: GET /loans: Undocumented status code
3.7s: GET /loans: API accepts requests without authentication
3.7s: GET /loans: Missing required header accepted
3.7s: PATCH /book_tags: Schema-valid request rejected
3.7s: PATCH /book_tags: Undocumented status code
3.7s: PATCH /book_tags: Missing required header accepted
3.9s: PATCH /books: Schema-valid request rejected
3.9s: PATCH /books: Undocumented status code
3.9s: PATCH /books: Missing required header accepted
4.4s: DELETE /book_tags: Schema-valid request rejected
4.4s: DELETE /book_tags: Undocumented status code
4.4s: DELETE /book_tags: Missing required header accepted
4.4s: DELETE /books: Schema-valid request rejected
4.4s: DELETE /books: Undocumented status code
4.5s: DELETE /books: Missing required header accepted
4.5s: PATCH /loans: Schema-valid request rejected
4.5s: PATCH /loans: Undocumented status code
4.5s: PATCH /loans: Missing required header accepted
4.7s: DELETE /loans: Schema-valid request rejected
4.7s: DELETE /loans: Undocumented status code
4.7s: DELETE /loans: Missing required header accepted
Fuzzing34m 58s in 93 passes, 69 found
5.2s: POST /authors: Missing Content-Type header
8.2s: GET /authors: Response violates schema
8.3s: GET /authors: Schema-violating request accepted
9.2s: GET /books_with_authors: Schema-violating request accepted
10.8s: GET /tags: Schema-violating request accepted
11.6s: POST /books: Missing Content-Type header
12.1s: POST /books: Undocumented status code
13.7s: GET /books: Response violates schema
13.7s: GET /books: Schema-violating request accepted
15.7s: PATCH /authors: Undocumented status code
15.8s: PATCH /authors: Undocumented status code
16.6s: PATCH /tags: Undocumented status code
16.6s: PATCH /tags: Undocumented status code
17.6s: DELETE /authors: Missing Content-Type header
17.6s: DELETE /authors: Undocumented status code
18s: DELETE /authors: Undocumented status code
18.3s: DELETE /tags: Missing Content-Type header
18.3s: DELETE /tags: Undocumented status code
18.3s: DELETE /tags: Undocumented status code
18.3s: DELETE /tags: Schema-violating request accepted
21.2s: POST /rpc/lend_book: Undocumented status code
22s: GET /book_tags: Schema-violating request accepted
23.1s: GET /loans: Schema-violating request accepted
23.9s: PATCH /book_tags: Missing Content-Type header
23.9s: PATCH /book_tags: Undocumented status code
24.9s: PATCH /books: Missing Content-Type header
24.9s: PATCH /books: Undocumented status code
25s: PATCH /books: Undocumented status code
26.9s: DELETE /book_tags: Missing Content-Type header
26.9s: DELETE /book_tags: Undocumented status code
27s: DELETE /book_tags: Undocumented status code
27.7s: DELETE /books: Missing Content-Type header
27.7s: DELETE /books: Undocumented status code
28.6s: PATCH /loans: Undocumented status code
30.1s: DELETE /loans: Missing Content-Type header
30.1s: DELETE /loans: Undocumented status code
30.3s: DELETE /loans: Undocumented status code
1m 7s: GET /tags: Schema-valid request rejected
1m 7s: GET /tags: Undocumented status code
1m 8s: POST /books: Undocumented status code
1m 21s: PATCH /books: Schema-violating request accepted
1m 23s: DELETE /books: Undocumented status code
1m 24s: DELETE /books: Schema-violating request accepted
2m 5s: POST /authors: Undocumented status code
2m 9s: GET /books_with_authors: Server error
2m 9s: GET /books_with_authors: Undocumented Content-Type
2m 9s: GET /books_with_authors: Undocumented status code
2m 22s: POST /loans: Missing Content-Type header
3m 15s: DELETE /loans: Schema-violating request accepted
4m 4s: PATCH /book_tags: Undocumented status code
4m 7s: DELETE /book_tags: Schema-violating request accepted
4m 35s: GET /book_tags: Server error
4m 35s: GET /book_tags: Undocumented Content-Type
4m 35s: GET /book_tags: Undocumented status code
5m 41s: DELETE /authors: Schema-violating request accepted
5m 46s: GET /loans: Server error
5m 46s: GET /loans: Undocumented Content-Type
5m 46s: GET /loans: Undocumented status code
7m 57s: GET /tags: Server error
7m 57s: GET /tags: Undocumented Content-Type
7m 57s: GET /tags: Undocumented status code
11m 55s: GET /authors: Server error
11m 55s: GET /authors: Undocumented Content-Type
11m 55s: GET /authors: Undocumented status code
15m 17s: PATCH /loans: Schema-violating request accepted21m 4s: GET /books_with_authors: Response violates schema25m 53s: PATCH /authors: Undocumented status code
015m30m45m1h
OperationFailuresCases
Failed26
GET/authors
API accepts requests without authentication+7 moreless
  • Server error
  • Response violates schema
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
41,177

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website=&select=&order=&offset=&limit='

Response violates schemaST108

null is not of type "string"

Validated against the response schema for status code 200.

Schema at /definitions/authors/properties/website:

    {
        "type": "string",
        "format": "text"
    }

Value:

    null
Response200 OK
[{"id":1,"name":"Ursula K. Le Guin","born":"1929-10-21","country":"US","website":null}, 
 {"id":2,"name":"Stanislaw Lem","born":"1921-09-12","country":"PL","website":null}, 
 {"id":0,"name":"{}","born":"2000-01-01","country":"  ","website":""}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/authors?select='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /authors`
Response200 OK
[{"id":1,"name":"Ursula K. Le Guin","born":"1929-10-21","country":"US","website":null}, 
 {"id":2,"name":"Stanislaw Lem","born":"1921-09-12","country":"PL","website":null}, 
 {"id":0,"name":"{}","born":"2000-01-01","country":"  ","website":""}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/authors?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website=&select=&order=&offset=&limit='

Response violates schemaST108

null is not of type "string"

Validated against the response schema for status code 200.

Schema at /definitions/authors/properties/country:

    {
        "type": "string",
        "format": "character",
        "maxLength": 2
    }

Value:

    null
Response200 OK
[{"id":1,"name":"Ursula K. Le Guin","born":"1929-10-21","country":"US","website":null}, 
 {"id":2,"name":"Stanislaw Lem","born":"1921-09-12","country":"PL","website":null}, 
 {"id":0,"name":"{}","born":"2000-01-01","country":"  ","website":""}, 
 {"id":-9223372036854775808,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":"¶á鸏Û𡀉򓾩@򻠊"}, 
 {"id":4,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":"¶á鸏Û𡀉򓾩@򻠊"}, 
 {"id":5,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":" // Output truncated...
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/authors

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[{"id":1,"name":"Ursula K. Le Guin","born":"1929-10-21","country":"US","website":null}, 
 {"id":2,"name":"Stanislaw Lem","born":"1921-09-12","country":"PL","website":null}, 
 {"id":0,"name":"{}","born":"2000-01-01","country":"  ","website":""}, 
 {"id":-9223372036854775808,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":"¶á鸏Û𡀉򓾩@򻠊"}, 
 {"id":4,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":"¶á鸏Û𡀉򓾩@򻠊"}, 
 {"id":5,"name":"򙛐𝓶򁇜¾`óN","born":"3573-01-13","country":null,"website":" // Output truncated...
Reproduce
curl -X GET http://0.0.0.0:40075/authors

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H 'Prefer: count=none' -H 'Range: 0Ïck' http://0.0.0.0:40075/authors

Response violates schemaST108

null is not of type "string"

Validated against the response schema for status code 200.

Schema at /definitions/authors/properties/born:

    {
        "type": "string",
        "format": "date"
    }

Value:

    null
Response200 OK
[{"id":9223372036854775806,"name":"c›","born":null,"country":null,"website":null}]
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/authors?offset=%CA%87%C7%9D%C9%AF%C9%90+%CA%87%E1%B4%89s+%C9%B9olop+%C9%AFnsd%E1%B4%89+%C9%AF%C7%9D%C9%B9o%CB%A5'
GET/books
API accepts requests without authentication+7 moreless
  • Server error
  • Response violates schema
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
41,413

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print=&select=&order=&offset=&limit='

Response violates schemaST108

null is not of type "string"

Validated against the response schema for status code 200.

Schema at /definitions/books/properties/published_at:

    {
        "type": "string",
        "format": "timestamp with time zone"
    }

Value:

    null
Response200 OK
[{"id":1,"author_id":1,"title":"The Dispossessed","isbn":"9780061054884","genre":"fiction","pages":387,"price":9.99,"published_at":null,"keywords":["anarchy","physics"],"details":{"series": "Hainish"},"in_print":true}, 
 {"id":2,"author_id":2,"title":"Solaris","isbn":"9780156027601","genre":"science","pages":204,"price":12.50,"published_at":null,"keywords":["ocean"],"details":{},"in_print":true}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/books?select='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /books`
Response200 OK
[{"id":1,"author_id":1,"title":"The Dispossessed","isbn":"9780061054884","genre":"fiction","pages":387,"price":9.99,"published_at":null,"keywords":["anarchy","physics"],"details":{"series": "Hainish"},"in_print":true}, 
 {"id":2,"author_id":2,"title":"Solaris","isbn":"9780156027601","genre":"science","pages":204,"price":12.50,"published_at":null,"keywords":["ocean"],"details":{},"in_print":true}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/books?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print=&select=&order=&offset=&limit='

Response violates schemaST1083 violations

null is not of type "integer"

Validated against the response schema for status code 200.

Schema at /definitions/books/properties/pages:

    {
        "type": "integer",
        "format": "int32"
    }

Value:

    null
null is not of type "number"

Validated against the response schema for status code 200.

Schema at /definitions/books/properties/price:

    {
        "type": "number",
        "format": "numeric"
    }

Value:

    null
null is not of type "string"

Validated against the response schema for status code 200.

Schema at /definitions/books/properties/isbn:

    {
        "type": "string",
        "format": "text"
    }

Value:

    null
Response200 OK
[{"id":1,"author_id":1,"title":"The Dispossessed","isbn":"9780061054884","genre":"fiction","pages":387,"price":9.99,"published_at":null,"keywords":["anarchy","physics"],"details":{"series": "Hainish"},"in_print":true}, 
 {"id":2,"author_id":2,"title":"Solaris","isbn":"9780156027601","genre":"science","pages":204,"price":12.50,"published_at":null,"keywords":["ocean"],"details":{},"in_print":true}, 
 {"id":0,"author_id":0,"title":"","isbn":null,"genre":"poetry","pages":null,"price":null,"published_at":null,"k // Output truncated...
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/books

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[{"id":1,"author_id":1,"title":"The Dispossessed","isbn":"9780061054884","genre":"fiction","pages":387,"price":9.99,"published_at":null,"keywords":["anarchy","physics"],"details":{"series": "Hainish"},"in_print":true}, 
 {"id":2,"author_id":2,"title":"Solaris","isbn":"9780156027601","genre":"science","pages":204,"price":12.50,"published_at":null,"keywords":["ocean"],"details":{},"in_print":true}, 
 {"id":0,"author_id":0,"title":"","isbn":null,"genre":"poetry","pages":null,"price":null,"published_at":null,"k // Output truncated...
Reproduce
curl -X GET http://0.0.0.0:40075/books

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H $'Range: ¯ytyFqÑ\tï' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Range-Unit: Xb\ G8${7!'"'"'xW)_kTUP}$' -H 'Prefer: KvLE' http://0.0.0.0:40075/books
GET/books_with_authors
API accepts requests without authentication+7 moreless
  • Server error
  • Response violates schema
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
12,580

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/books_with_authors?id=&title=&genre=&price=&author=&select=&order=&offset=&limit='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /books_with_authors`
Response200 OK
[{"id":1,"title":"The Dispossessed","genre":"fiction","price":9.99,"author":"Ursula K. Le Guin"}, 
 {"id":2,"title":"Solaris","genre":"science","price":12.50,"author":"Stanislaw Lem"}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/books_with_authors?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/books_with_authors?id=&title=&genre=&price=&author=&select=&order=&offset=&limit='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[{"id":1,"title":"The Dispossessed","genre":"fiction","price":9.99,"author":"Ursula K. Le Guin"}, 
 {"id":2,"title":"Solaris","genre":"science","price":12.50,"author":"Stanislaw Lem"}]
Reproduce
curl -X GET http://0.0.0.0:40075/books_with_authors

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H 'Range: ú' -H 'Range-Unit;' http://0.0.0.0:40075/books_with_authors

Response violates schemaST108

null is not of type "number"

Validated against the response schema for status code 200.

Schema at /definitions/books_with_authors/properties/price:

    {
        "type": "number",
        "format": "numeric"
    }

Value:

    null
Response200 OK
[{"id":0,"title":"[񮦉Û\u0002†\bB\\v","genre":"science","price":null,"author":"À񥝺è×2"}]
Reproduce
curl -X GET -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/books_with_authors
GET/book_tags
API accepts requests without authentication+6 moreless
  • Server error
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
17,255

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id=&select=&order=&offset=&limit='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /book_tags`
Response200 OK
[{"book_id":1,"tag_id":1}, 
 {"book_id":1,"tag_id":2}, 
 {"book_id":2,"tag_id":2}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/book_tags?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id=&select=&order=&offset=&limit='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[]
Reproduce
curl -X GET http://0.0.0.0:40075/book_tags

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H 'Range-Unit: /' -H $'Range: P\xc2\x99\xc2\x8dp' http://0.0.0.0:40075/book_tags
GET/loans
API accepts requests without authentication+6 moreless
  • Server error
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
42,677

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned=&select=&order=&offset=&limit='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /loans`
Response200 OK
[]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/loans?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned=&select=&order=&offset=&limit='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[]
Reproduce
curl -X GET http://0.0.0.0:40075/loans

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H $'Range: \xc2\x87' -H $'Range-Unit: ~\tyMf&' 'http://0.0.0.0:40075/loans?limit=S%C3%AF%C2%93%19&offset=%C2%80%C2%B9'
GET/tags
API accepts requests without authentication+6 moreless
  • Server error
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented Content-Type
  • Undocumented status code
42,530

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200, 206
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/tags?id=&name=&select=&order=&offset=&limit='

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /tags`
Response200 OK
[{"id":1,"name":"classic"}, 
 {"id":2,"name":"sf"}, 
 {"id":0,"name":""}]
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/tags?select='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X GET -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' 'http://0.0.0.0:40075/tags?id=&name=&select=&order=&offset=&limit='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Authorization` in header - violates `required` (was Authorization)
Response200 OK
[{"id":1,"name":"classic"}, 
 {"id":2,"name":"sf"}, 
 {"id":0,"name":""}, 
 {"id":-929899169,"name":"/Yá\u000e"}]
Reproduce
curl -X GET http://0.0.0.0:40075/tags

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 416
Documented: 200, 206
Response416 Range Not Satisfiable
{"code":"PGRST103","details":"Limit should be greater than or equal to zero.","hint":null,"message":"Requested range not satisfiable"}
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/tags?limit=%F2%96%80%BD%C2%9A&offset=6'

Server errorST101

Undocumented Content-TypeST105

Received: text/plain; charset=utf-8
Documented: application/json, application/vnd.pgrst.object+json;nulls=stripped, application/vnd.pgrst.object+json, text/csv

Undocumented status codeST103

Received: 500
Documented: 200, 206
Response500 Internal Server Error
Something went wrong
Reproduce
curl -X GET -H 'Range-Unit: 1EJU,' -H 'Prefer: count=none' -H 'Range: ³a¼' http://0.0.0.0:40075/tags
POST/rpc/author_stats
API accepts requests without authentication+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
14,431

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `POST /rpc/author_stats`
Response200 OK
{"books" : 0, "pages" : 0}
Reproduce
curl -X POST -H 'Content-Type: application/json' -d '{"author_id": 0}' http://0.0.0.0:40075/rpc/author_stats

Undocumented status codeST103

Received: 404
Documented: 200
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.author_stats without parameters or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function api.author_stats without parameters in the schema cache"}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/rpc/author_stats

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: Missing `Authorization` at header

Missing required header acceptedST203

Got 200 when missing required 'Authorization' header, expected 401
Response200 OK
{"books" : 0, "pages" : 0}
Reproduce
curl -X POST -H 'Prefer;' -H 'Content-Type: application/json' -d '{"author_id": 0}' http://0.0.0.0:40075/rpc/author_stats

Undocumented status codeST103

Received: 400
Documented: 200
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (not enough input) at \"\""}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '[null, null]' http://0.0.0.0:40075/rpc/author_stats

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (Failed reading: satisfy) at \"\\\"author_id\\\": 9223372036854775806}\""}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '{"author_id": 9223372036854775806}' http://0.0.0.0:40075/rpc/author_stats
POST/rpc/search_books
API accepts requests without authentication+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
9,995

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `POST /rpc/search_books`
Response200 OK
[]
Reproduce
curl -X POST -H 'Content-Type: application/json' -d '{"max_price": 0, "query": ""}' http://0.0.0.0:40075/rpc/search_books

Undocumented status codeST103

Received: 404
Documented: 200
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.search_books without parameters or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function api.search_books without parameters in the schema cache"}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/rpc/search_books

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: Missing `Authorization` at header

Missing required header acceptedST203

Got 200 when missing required 'Authorization' header, expected 401
Response200 OK
[]
Reproduce
curl -X POST -H 'Prefer;' -H 'Content-Type: application/json' -d '{"max_price": 0, "query": ""}' http://0.0.0.0:40075/rpc/search_books

Undocumented status codeST103

Received: 400
Documented: 200
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (not enough input) at \"\""}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '[null, null]' http://0.0.0.0:40075/rpc/search_books

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (Failed reading: satisfy) at \"\\\"query\\\": \\\"\\\"}\""}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '{"query": ""}' http://0.0.0.0:40075/rpc/search_books
GET/rpc/author_stats
API accepts requests without authentication+3 moreless
  • Missing required header accepted
  • Schema-violating request accepted
  • Undocumented status code
21,364

Undocumented status codeST103

Received: 404
Documented: 200
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.author_stats without parameters, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function api.author_stats without parameters in the schema cache"}
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/rpc/author_stats

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /rpc/author_stats`

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: Missing `Authorization` at header

Missing required header acceptedST203

Got 200 when missing required 'Authorization' header, expected 401
Response200 OK
{"books" : 1, "pages" : 387}
Reproduce
curl -X GET 'http://0.0.0.0:40075/rpc/author_stats?author_id=1'

Undocumented status codeST103

Received: 400
Documented: 200
Response400 Bad Request
{"code":"22003","details":null,"hint":null,"message":"value \"9223372036854775808\" is out of range for type bigint"}
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/rpc/author_stats?author_id=9223372036854775808'
GET/rpc/search_books
API accepts requests without authentication+3 moreless
  • Missing required header accepted
  • Schema-violating request accepted
  • Undocumented status code
12,823

API accepts requests without authenticationST401

Expected 401 or 403, got `200 OK` for `GET /rpc/search_books`
Response200 OK
[{"id":1,"author_id":1,"title":"The Dispossessed","isbn":"9780061054884","genre":"fiction","pages":387,"price":9.99,"published_at":null,"keywords":["anarchy","physics"],"details":{"series": "Hainish"},"in_print":true}, 
 {"id":2,"author_id":2,"title":"Solaris","isbn":"9780156027601","genre":"science","pages":204,"price":12.50,"published_at":null,"keywords":["ocean"],"details":{},"in_print":true}]
Reproduce
curl -X GET 'http://0.0.0.0:40075/rpc/search_books?query='

Undocumented status codeST103

Received: 404
Documented: 200
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.search_books with parameter max_price, but no matches were found in the schema cache.","hint":"Perhaps you meant to call the function api.search_books(max_price, query)","message":"Could not find the function api.search_books(max_price) in the schema cache"}
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/rpc/search_books?max_price=0'

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: Missing `Authorization` at header

Missing required header acceptedST203

Got 200 when missing required 'Authorization' header, expected 401
Response200 OK
[]
Reproduce
curl -X GET 'http://0.0.0.0:40075/rpc/search_books?query=&max_price=0'

Undocumented status codeST103

Received: 400
Documented: 200
Response400 Bad Request
{"code":"22P02","details":null,"hint":null,"message":"invalid input syntax for type numeric: \"null\""}
Reproduce
curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/rpc/search_books?query=&max_price=null&max_price=null'
DELETE/authors
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
16,453

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Prefer: return=representation' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/authors

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table authors"}
Reproduce
curl -X DELETE http://0.0.0.0:40075/authors

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: return=representation' http://0.0.0.0:40075/authors

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: W' http://0.0.0.0:40075/authors
PATCH/authors
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
11,085

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": -9223372036854775807, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": -9223372036854775807, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?id=&name=&born=&country=&website='

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table authors"}
Reproduce
curl -X PATCH -H 'Content-Type: application/json' -d '{"id": -9223372036854775808, "name": ""}' http://0.0.0.0:40075/authors

Undocumented status codeST103

Received: 409
Documented: 204
Response409 Conflict
{"code":"23505","details":"Key (id)=(9223372036854775807) already exists.","hint":null,"message":"duplicate key value violates unique constraint \"authors_pkey\""}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"website": "\udae1\udd1f\udb1f\uddf5", "name": "\udb68\udd6b", "country": "", "id": 9223372036854775807, "born": "2000-01-01"}' http://0.0.0.0:40075/authors

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[{"id":163845,"name":"\u0005À¼sªÑ򻻫»*•","born":"0046-05-28","country":null,"website":"򱨄"}]
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"website": "\uda86\ude04", "id": 163845, "name": "\u0005\u00c0\u00bcs\u00aa\u00d1\udaaf\udeeb\u00bb*\u0095", "born": "0046-05-28"}' http://0.0.0.0:40075/authors

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
  1. GET/authors
    curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: count=none' http://0.0.0.0:40075/authors
  2. PATCH/authorsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' http://0.0.0.0:40075/authors

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component:
  - header: violates `required` (was Authorization)
  - body: violates `type` (was object, became array)
Response204 No Content
<EMPTY>
Reproduce
  1. GET/authors
    curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/authors?offset=%7F%C2%A8Q%C2%8A%C3%8F%F1%94%BD%A2%F2%B1%AA%90&select=%11%C3%BC'
  2. PATCH/authorsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '[]' http://0.0.0.0:40075/authors
DELETE/book_tags
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
23,553

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Prefer: return=representation' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/book_tags

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table book_tags"}
Reproduce
curl -X DELETE http://0.0.0.0:40075/book_tags

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: return=representation' http://0.0.0.0:40075/book_tags

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/book_tags
PATCH/book_tags
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
11,574

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?book_id=&tag_id='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' http://0.0.0.0:40075/book_tags

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table book_tags"}
Reproduce
curl -X PATCH -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' http://0.0.0.0:40075/book_tags

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": -929899169}' http://0.0.0.0:40075/book_tags

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component:
  - header: violates `required` (was Authorization)
  - body: Invalid syntax: random bytes
Response204 No Content
<EMPTY>
Reproduce
  1. POST/tags
    curl -X POST -H 'Prefer: return=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": -929899169, "name": "e\u00d7\u00bd\ud8e5\udfda\u00f3\ud9b6\udcb8\u009c\u0090\u00c2\ud93d\udcd7\ud84d\udff6<\u0006Z"}' 'http://0.0.0.0:40075/tags?select=%C2%B7%F1%A0%98%89T%7FO%C2%99%C3%BE'
  2. PATCH/book_tagsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"tag_id": -929899169}' http://0.0.0.0:40075/book_tags
DELETE/books
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
12,852

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Prefer: return=representation' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table books"}
Reproduce
curl -X DELETE http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X DELETE -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/books

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Prefer: Q' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/books
PATCH/books
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
10,393

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 9223372036854775807, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": ["anarchy", "physics"], "details": {}, "in_print": true}' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 9223372036854775807, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": ["anarchy", "physics"], "details": {}, "in_print": true}' 'http://0.0.0.0:40075/books?id=&author_id=&title=&isbn=&genre=&pages=&price=&published_at=&keywords=&details=&in_print='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"author_id": -9223372036854775807, "details": 0.0, "genre": "poetry", "id": 0, "in_print": false, "keywords": [], "title": ""}' http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table books"}
Reproduce
curl -X PATCH -H 'Content-Type: application/json' -d '{"author_id": -9223372036854775807, "details": 0.0, "genre": "poetry", "id": 0, "in_print": false, "keywords": [], "title": ""}' http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"author_id": -9223372036854775807, "details": 0.0, "genre": "poetry", "id": 0, "in_print": false, "keywords": [], "title": ""}' http://0.0.0.0:40075/books

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer;' -H 'Content-Type: application/json' -d '{"author_id": -9223372036854775807, "details": 0.0, "genre": "poetry", "id": 0, "in_print": false, "keywords": [], "title": ""}' http://0.0.0.0:40075/books
DELETE/loans
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
17,088

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Prefer: return=representation' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/loans

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table loans"}
Reproduce
curl -X DELETE http://0.0.0.0:40075/loans

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X DELETE -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/loans

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Prefer: \}\)7##Qq?,8AAg' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/loans
PATCH/loans
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
13,841

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?id=&book_id=&borrower=&period=&returned='

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table loans"}
Reproduce
curl -X PATCH -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "period": "", "returned": false}' http://0.0.0.0:40075/loans

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - violates `required` (was id, book_id, borrower, period, returned)
Response204 No Content
<EMPTY>
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{}' http://0.0.0.0:40075/loans

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
  1. GET/loans
    curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/loans
  2. PATCH/loansfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "id": "2507759b-36af-171e-ad2e-f1c113d1e9e3", "period": "", "returned": false}' http://0.0.0.0:40075/loans
DELETE/tags
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
13,446

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/tags?id=&name='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X DELETE -H 'Prefer: return=representation' 'http://0.0.0.0:40075/tags?id=&name='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/tags

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table tags"}
Reproduce
curl -X DELETE http://0.0.0.0:40075/tags

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
curl -X DELETE -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/tags

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: parameter `Prefer` in header - violates `enum` at /properties/Prefer
Response204 No Content
<EMPTY>
Reproduce
curl -X DELETE -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/tags
PATCH/tags
Missing Content-Type header+4 moreless
  • Missing required header accepted
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
10,469

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 204
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?id=&name='

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting \"not\" or operator (eq, gt, ...)","hint":null,"message":"\"failed to parse filter ()\" (line 1, column 1)"}
Reproduce
curl -X PATCH -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?id=&name='

Undocumented status codeST103

Received: 409
Documented: 204
Response409 Conflict
{"code":"23505","details":"Key (id)=(0) already exists.","hint":null,"message":"duplicate key value violates unique constraint \"tags_pkey\""}
Reproduce
curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' http://0.0.0.0:40075/tags

Undocumented status codeST103

Received: 401
Documented: 204
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table tags"}
Reproduce
curl -X PATCH -H 'Content-Type: application/json' -d '{"id": -929899169, "name": ""}' http://0.0.0.0:40075/tags

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response204 No Content
<EMPTY>
Reproduce
  1. GET/tags
    curl -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/tags?limit=5'
  2. PATCH/tagsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": -929899169, "name": ""}' http://0.0.0.0:40075/tags

Undocumented status codeST103

Received: 200
Documented: 204
Response200 OK
[]
Reproduce
  1. GET/tags
    curl -X GET http://0.0.0.0:40075/tags
  2. PATCH/tagsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 995616769, "name": "\u00f6"}' http://0.0.0.0:40075/tags

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - invalid syntax: random bytes
Response204 No Content
<EMPTY>
Reproduce
  1. POST/tags
    curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 6457605, "name": ""}' http://0.0.0.0:40075/tags
  2. PATCH/tagsfailed here
    curl -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 6457605}' http://0.0.0.0:40075/tags
POST/authors
Missing Content-Type header+3 moreless
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
35,127

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 201
Response400 Bad Request
{"code":"23514","details":"Failing row contains (0, , 2000-01-01,   , ).","hint":null,"message":"new row for relation \"authors\" violates check constraint \"authors_name_check\""}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?select='

Undocumented status codeST103

Received: 401
Documented: 201
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table authors"}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 0, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?select='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - incorrect type
Response201 Created
[]
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '"AAA"' 'http://0.0.0.0:40075/authors?select='

Undocumented status codeST103

Received: 409
Documented: 201
Response409 Conflict
{"code":"23505","details":"Key (id)=(0) already exists.","hint":null,"message":"duplicate key value violates unique constraint \"authors_pkey\""}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": [null, null], "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?select='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response201 Created
<EMPTY>
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"born": "3573-01-13", "website": "\u00b6\u00e1\u0090\u9e0f\u00db\ud844\udc09\uda0f\udfa9@\udaae\udc0a", "name": "\uda25\uded0\ud835\udcf6\ud9c4\udddc\u009d\u00be`\u00f3N", "id": -9223372036854775808}' http://0.0.0.0:40075/authors

Undocumented status codeST103

Received: 200
Documented: 201
Response200 OK
<EMPTY>
Reproduce
curl -X POST -H 'Prefer: resolution=merge-duplicates' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"website": "\u06f4\ud9be\udf4e", "id": -67, "name": "G"}' http://0.0.0.0:40075/authors
POST/book_tags
Missing Content-Type header+3 moreless
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
9,379

Undocumented status codeST103

Received: 409
Documented: 201
Response409 Conflict
{"code":"23503","details":"Key (book_id)=(0) is not present in table \"books\".","hint":null,"message":"insert or update on table \"book_tags\" violates foreign key constraint \"book_tags_book_id_fkey\""}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?select='

Undocumented status codeST103

Received: 401
Documented: 201
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table book_tags"}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?select='

Undocumented status codeST103

Received: 400
Documented: 201
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (not enough input) at \"\""}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '[null, null]' 'http://0.0.0.0:40075/book_tags?select='

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (Failed reading: satisfy) at \"\\\"book_id\\\": 0, \\\"tag_id\\\": 2147483646}\""}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '{"book_id": 0, "tag_id": 2147483646}' 'http://0.0.0.0:40075/book_tags?select='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - incorrect type
Response201 Created
[]
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '"AAA"' 'http://0.0.0.0:40075/book_tags?select='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response201 Created
<EMPTY>
Reproduce
  1. POST/tags
    curl -X POST -H 'Prefer: resolution=merge-duplicates' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": -121981, "name": "k:\ud9ad\udc7c\u00e9\u00f8Y\u001e\u0014"}' http://0.0.0.0:40075/tags
  2. POST/book_tagsfailed here
    curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": -121981}' http://0.0.0.0:40075/book_tags
POST/books
Missing Content-Type header+3 moreless
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
35,627

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 201
Response400 Bad Request
{"code":"23514","details":null,"hint":null,"message":"value for domain isbn violates check constraint \"isbn_check\""}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 0, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": [], "details": null, "in_print": true}' 'http://0.0.0.0:40075/books?select='

Undocumented status codeST103

Received: 401
Documented: 201
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table books"}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 0, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": [], "details": null, "in_print": true}' 'http://0.0.0.0:40075/books?select='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - incorrect type
Response201 Created
[]
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '"AAA"' 'http://0.0.0.0:40075/books?select='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response201 Created
<EMPTY>
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"genre": "poetry", "id": 0, "in_print": false, "keywords": [], "author_id": 0, "details": 0.0, "title": ""}' http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 409
Documented: 201
Response409 Conflict
{"code":"23505","details":"Key (id)=(0) already exists.","hint":null,"message":"duplicate key value violates unique constraint \"books_pkey\""}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"genre": "poetry", "id": 0, "in_print": false, "keywords": [], "author_id": 0, "title": "", "details": 0.0}' http://0.0.0.0:40075/books

Undocumented status codeST103

Received: 200
Documented: 201
Response200 OK
<EMPTY>
Reproduce
curl -X POST -H 'Prefer: resolution=merge-duplicates' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"genre": "science", "keywords": ["phases"], "details": [{}, [0.5], [0.5]], "id": 0, "title": "\uda0f\udccc\u0005\u00d1=\ud91d\udc34", "in_print": false, "author_id": 9223372036854775806}' http://0.0.0.0:40075/books
POST/loans
Missing Content-Type header+3 moreless
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
36,143

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 201
Response400 Bad Request
{"code":"22P02","details":"Missing left parenthesis or bracket.","hint":null,"message":"malformed range literal: \"\""}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?select='

Undocumented status codeST103

Received: 401
Documented: 201
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table loans"}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?select='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - incorrect type
Response201 Created
[]
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '"AAA"' 'http://0.0.0.0:40075/loans?select='

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response201 Created
<EMPTY>
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Prefer: return=none' -H 'Content-Type: application/json' -d null http://0.0.0.0:40075/loans
POST/tags
Missing Content-Type header+3 moreless
  • Schema-valid request rejected
  • Schema-violating request accepted
  • Undocumented status code
35,385

Missing Content-Type headerST104

The following media types are documented in the schema:
- `application/json`
- `application/vnd.pgrst.object+json;nulls=stripped`
- `application/vnd.pgrst.object+json`
- `text/csv`
Response201 Created
<EMPTY>
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='

Undocumented status codeST103

Received: 401
Documented: 201
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table tags"}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='

Undocumented status codeST103

Received: 409
Documented: 201
Response409 Conflict
{"code":"23505","details":"Key (id)=(0) already exists.","hint":null,"message":"duplicate key value violates unique constraint \"tags_pkey\""}
Reproduce
curl -X POST -H 'Prefer: {}' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='

Undocumented status codeST103

Received: 200
Documented: 201
Response200 OK
<EMPTY>
Reproduce
curl -X POST -H 'Prefer: resolution=merge-duplicates' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='

Undocumented status codeST103

Received: 400
Documented: 201
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (not enough input) at \"\""}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '[null, null]' 'http://0.0.0.0:40075/tags?select='

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx
Response400 Bad Request
{"code":"PGRST102","details":null,"hint":null,"message":"parse error (Failed reading: satisfy) at \"\\\"id\\\": 0, \\\"name\\\": \\\"0000000000000000000000000000000000000000000000000\\\"}\""}
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: text/csv' -d '{"id": 0, "name": "0000000000000000000000000000000000000000000000000"}' 'http://0.0.0.0:40075/tags?select='

Schema-violating request acceptedST201

Invalid data should have been rejected
Expected: 400, 401, 403, 404, 405, 406, 409, 415, 422, 428, 429, 5xx
Invalid component: in body - incorrect type
Response201 Created
[]
Reproduce
curl -X POST -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '"AAA"' 'http://0.0.0.0:40075/tags?select='
POST/rpc/lend_book
Missing required header accepted+2 moreless
  • Schema-valid request rejected
  • Undocumented status code
9,359

Schema-valid request rejectedST202

Valid data should have been accepted
Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx

Undocumented status codeST103

Received: 400
Documented: 200
Response400 Bad Request
{"code":"22023","details":null,"hint":null,"message":"days must be between 1 and 90"}
Reproduce
curl -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "days": 0}' http://0.0.0.0:40075/rpc/lend_book

Undocumented status codeST103

Received: 404
Documented: 200
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.lend_book without parameters or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function api.lend_book without parameters in the schema cache"}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' http://0.0.0.0:40075/rpc/lend_book

Missing required header acceptedST203

Got 400 when missing required 'Authorization' header, expected 401
Response400 Bad Request
{"code":"22023","details":null,"hint":null,"message":"days must be between 1 and 90"}
Reproduce
curl -X POST -H 'Prefer;' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "days": 0}' http://0.0.0.0:40075/rpc/lend_book

Undocumented status codeST103

Received: 409
Documented: 200
Response409 Conflict
{"code":"23503","details":"Key (book_id)=(0) is not present in table \"books\".","hint":null,"message":"insert or update on table \"loans\" violates foreign key constraint \"loans_book_id_fkey\""}
Reproduce
curl -X POST -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "days": null}' http://0.0.0.0:40075/rpc/lend_book

Undocumented status codeST103

Received: 401
Documented: 200
Response401 Unauthorized
{"code":"42501","details":null,"hint":null,"message":"permission denied for table loans"}
Reproduce
curl -X POST -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": ""}' http://0.0.0.0:40075/rpc/lend_book
Not tied to an operation
  • Wrong response to undeclared methodx10
  • Allow header mismatchx5
PUT/authors

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST105","details":null,"hint":null,"message":"Filters must include all and only primary key columns with 'eq' operators"}
Reproduce
curl -X PUT -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?select='
OPTIONS/authors

Allow header mismatchST205

`Allow: OPTIONS,GET,HEAD,POST,PUT,PATCH,DELETE` does not match the schema. Undocumented methods advertised: PUT

List exactly the methods this resource supports in `Allow`
Response200 OK
<EMPTY>
Reproduce
curl -X OPTIONS -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": "", "born": "2000-01-01", "country": "", "website": ""}' 'http://0.0.0.0:40075/authors?select='
PUT/rpc/search_books

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST101","details":null,"hint":null,"message":"Cannot use the PUT method on RPC"}
Reproduce
curl -X PUT -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"max_price": 0, "query": ""}' http://0.0.0.0:40075/rpc/search_books
PUT/tags

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST105","details":null,"hint":null,"message":"Filters must include all and only primary key columns with 'eq' operators"}
Reproduce
curl -X PUT -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='
OPTIONS/tags

Allow header mismatchST205

`Allow: OPTIONS,GET,HEAD,POST,PUT,PATCH,DELETE` does not match the schema. Undocumented methods advertised: PUT

List exactly the methods this resource supports in `Allow`
Response200 OK
<EMPTY>
Reproduce
curl -X OPTIONS -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "name": ""}' 'http://0.0.0.0:40075/tags?select='
PUT/books_with_authors

Wrong response to undeclared methodST204

Unsupported method PUT returned 400, expected 405 Method Not Allowed

Return 405 for methods not listed in the OpenAPI spec
Response400 Bad Request
{"code":"PGRST100","details":"unexpected end of input expecting field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse order ()\" (line 1, column 1)"}
Reproduce
curl -X PUT -H 'Range;' -H 'Range-Unit: items' -H 'Prefer: count=none' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' 'http://0.0.0.0:40075/books_with_authors?id=&title=&genre=&price=&author=&select=&order=&offset=&limit='
PUT/books

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST105","details":null,"hint":null,"message":"Filters must include all and only primary key columns with 'eq' operators"}
Reproduce
curl -X PUT -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 0, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": [], "details": null, "in_print": true}' 'http://0.0.0.0:40075/books?select='
OPTIONS/books

Allow header mismatchST205

`Allow: OPTIONS,GET,HEAD,POST,PUT,PATCH,DELETE` does not match the schema. Undocumented methods advertised: PUT

List exactly the methods this resource supports in `Allow`
Response200 OK
<EMPTY>
Reproduce
curl -X OPTIONS -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": 0, "author_id": 0, "title": "", "isbn": "", "genre": "fiction", "pages": 0, "price": 0, "published_at": "", "keywords": [], "details": null, "in_print": true}' 'http://0.0.0.0:40075/books?select='
PUT/rpc/author_stats

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST101","details":null,"hint":null,"message":"Cannot use the PUT method on RPC"}
Reproduce
curl -X PUT -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"author_id": 0}' http://0.0.0.0:40075/rpc/author_stats
PUT/book_tags

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST105","details":null,"hint":null,"message":"Filters must include all and only primary key columns with 'eq' operators"}
Reproduce
curl -X PUT -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?select='
OPTIONS/book_tags

Allow header mismatchST205

`Allow: OPTIONS,GET,HEAD,POST,PUT,PATCH,DELETE` does not match the schema. Undocumented methods advertised: PUT

List exactly the methods this resource supports in `Allow`
Response200 OK
<EMPTY>
Reproduce
curl -X OPTIONS -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "tag_id": 0}' 'http://0.0.0.0:40075/book_tags?select='
PUT/loans

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST105","details":null,"hint":null,"message":"Filters must include all and only primary key columns with 'eq' operators"}
Reproduce
curl -X PUT -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?select='
OPTIONS/loans

Allow header mismatchST205

`Allow: OPTIONS,GET,HEAD,POST,PUT,PATCH,DELETE` does not match the schema. Undocumented methods advertised: PUT

List exactly the methods this resource supports in `Allow`
Response200 OK
<EMPTY>
Reproduce
curl -X OPTIONS -H 'Prefer: return=representation' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"id": "e3e70682-c209-1cac-a29f-6fbed82c07cd", "book_id": 0, "borrower": "", "period": "", "returned": false}' 'http://0.0.0.0:40075/loans?select='
PUT/rpc/lend_book

Wrong response to undeclared methodST204

PUT returned 405 without required `Allow` header

Add `Allow` header listing supported methods (required by RFC 9110)
Response405 Method Not Allowed
{"code":"PGRST101","details":null,"hint":null,"message":"Cannot use the PUT method on RPC"}
Reproduce
curl -X PUT -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "days": 0}' http://0.0.0.0:40075/rpc/lend_book
GET/rpc/lend_book

Wrong response to undeclared methodST204

Unsupported method GET returned 404, expected 405 Method Not Allowed

Return 405 for methods not listed in the OpenAPI spec
Response404 Not Found
{"code":"PGRST202","details":"Searched for the function api.lend_book without parameters, but no matches were found in the schema cache.","hint":null,"message":"Could not find the function api.lend_book without parameters in the schema cache"}
Reproduce
curl -X GET -H 'Prefer;' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoid2ViX3VzZXIifQ.hwWsbWFXukM_f0EnNbV2jijiVqWickzT75Eeg5GvLuM' -H 'Content-Type: application/json' -d '{"book_id": 0, "borrower": "", "days": 0}' http://0.0.0.0:40075/rpc/lend_book