mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 22:50:18 +00:00
d8c9d6186f
Enable Pydantic in Neon client
78 lines
1.7 KiB
YAML
78 lines
1.7 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
User-Agent:
|
|
- neon-client/python version=(0.1.0)
|
|
method: GET
|
|
uri: https://console.neon.tech/api/v2/projects
|
|
response:
|
|
body:
|
|
string: '{"projects":[]}'
|
|
headers:
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '15'
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Tue, 23 Jan 2024 21:49:06 GMT
|
|
Strict-Transport-Security:
|
|
- max-age=15724800; includeSubDomains
|
|
Vary:
|
|
- Origin
|
|
X-Neon-Ret-Request-Id:
|
|
- a718c5bcf841f63063cd65a793c68d0b
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{}'
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '2'
|
|
Content-Type:
|
|
- application/json
|
|
User-Agent:
|
|
- neon-client/python version=(0.1.0)
|
|
method: POST
|
|
uri: https://console.neon.tech/api/v2/projects
|
|
response:
|
|
body:
|
|
string: '{"code":"","message":"invalid request: decode application/json: invalid:
|
|
project (field required)"}'
|
|
headers:
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '99'
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Tue, 23 Jan 2024 21:49:06 GMT
|
|
Strict-Transport-Security:
|
|
- max-age=15724800; includeSubDomains
|
|
Vary:
|
|
- Origin
|
|
X-Neon-Ret-Request-Id:
|
|
- 5e32ba21b25aad1a95df172805aca86a
|
|
status:
|
|
code: 400
|
|
message: Bad Request
|
|
version: 1
|