-
-
Notifications
You must be signed in to change notification settings - Fork 19
API
alexcibotari edited this page Mar 12, 2023
·
10 revisions
You will need to know your Firebase project ID, Space ID and host domain name.
Hosting domain names:
<firebase-project-id>.web.app
<firebase-project-id>.firebaseapp.com
custom domain name
All paths are redirection to cached CDN version. Please fallow the redirect from response.
Path | Description |
---|---|
/api/v1/spaces/:spaceId/translations/:locale |
spaceId - space unique identifier locale - locale id |
/api/v1/spaces/:spaceId/links |
spaceId - space unique identifier Query parameters : kind = 'DOCUMENT' or 'FOLDER', startSlug = filter by start with slug |
/api/v1/spaces/:spaceId/contents/slugs/:slugs |
spaceId - space unique identifier slugs - full slug of content Query parameters : locale - locale id |
/api/v1/spaces/:spaceId/contents/:contentId |
spaceId - space unique identifier contentId - content unique identifier Query parameters : locale - locale id |
/api/v1/spaces/:spaceId/assets/:assetId |
spaceId - space unique identifier assetId - asset unique identifier |
{
"KEY_1": "VALUE_1",
"KEY_2": "VALUE_2",
"KEY_3": "VALUE_3",
"KEY_4": "VALUE_4"
}
{
"6ctsdZzS3h5VLFrUjMwI": {
"id": "6ctsdZzS3h5VLFrUjMwI",
"kind": "FOLDER",
"name": "Emails",
"slug": "emails",
"fullSlug": "emails",
"parentSlug": "",
"createdAt": "2023-02-03T12:27:29.207Z",
"updatedAt": "2023-02-03T12:27:29.207Z"
},
"AKTQMYSd56UQrR0HERSM": {
"id": "AKTQMYSd56UQrR0HERSM",
"kind": "PAGE",
"name": "Home",
"slug": "home",
"fullSlug": "home",
"parentSlug": "",
"createdAt": "2023-01-12T19:00:02.622Z",
"updatedAt": "2023-02-03T20:18:26.141Z",
"publishedAt": "2023-02-01T10:05:06.181Z"
}
}
{
"id": "AKTQMYSd56UQrR0HERSM",
"name": "Home",
"slug": "home",
"fullSlug": "home",
"parentSlug": "",
"createdAt": "2023-01-12T19:00:02.622Z",
"updatedAt": "2023-02-05T01:03:33.663Z",
"publishedAt": "2023-02-05T01:03:38.704Z",
"data": {
"_id": "e043fbe7-2c43-449f-b59a-f681ccab8354",
"schematic": "page",
"title": "Home Page",
"body": "Hello World ...",
"count": 5655
}
}