Fix open api
This commit is contained in:
1 parent
dd7db5032a
commit
7ab7acd533
1 file changed
+4
-15
@@ -13,9 +13,7 @@ info:
|
||||
|
||||
The public API is hosted by Descrybe (customers do not self-host this surface).
|
||||
|
||||
- Production: https://descrybe.io/api/v1
|
||||
|
||||
OpenAPI document: GET https://descrybe.io/api/v1/openapi.yaml
|
||||
- Production: https://api.descrybe.io/api/v1
|
||||
|
||||
## Authentication
|
||||
|
||||
@@ -36,7 +34,7 @@ info:
|
||||
|
||||
### Create a key in the app
|
||||
|
||||
1. Sign in at https://descrybe.io
|
||||
1. Sign in at https://api.descrybe.io
|
||||
2. Open Settings -> API keys (/settings?tab=api-keys)
|
||||
3. Company admins create a key via dashboard POST /api/api-keys
|
||||
(session cookie + CSRF; not this public OpenAPI surface). The secret is
|
||||
@@ -86,12 +84,7 @@ info:
|
||||
## Quick curl
|
||||
|
||||
curl -s -H "Authorization: Bearer dk_your_key" \
|
||||
"https://descrybe.io/api/v1/products?page=1&limit=1"
|
||||
|
||||
Local Go API (default listen from README):
|
||||
|
||||
curl -s -H "Authorization: Bearer dk_your_key" \
|
||||
"http://localhost:28471/api/v1/products?page=1&limit=1"
|
||||
"https://api.descrybe.io/api/v1/products?page=1&limit=1"
|
||||
|
||||
Health: GET /api/v1/health (also /healthz and /readyz on the API host).
|
||||
|
||||
@@ -148,12 +141,8 @@ info:
|
||||
from this public API-key surface. Other path aliases
|
||||
(/categories/create, /attributes/create, /campaigns) appear next to canonical paths.
|
||||
servers:
|
||||
- url: https://descrybe.io/api/v1
|
||||
- url: https://api.descrybe.io/api/v1
|
||||
description: Production (Descrybe-hosted)
|
||||
- url: http://localhost:28472/api/v1
|
||||
description: Local web (Vite proxy to Go API)
|
||||
- url: http://localhost:28471/api/v1
|
||||
description: Local API (default Go listen address)
|
||||
security:
|
||||
- BearerAuth: []
|
||||
- ApiKeyAuth: []
|
||||
|
||||
Reference in new issue
Block a user