HydraCore
API by router

Website pages

List Pages

GET
/v1/website/{config_id}/pages
AuthorizationBearer <token>

In: header

Path Parameters

config_idConfig Id
Formatuuid

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages" \  -H "X-Api-Key: string"
[
  {
    "content_html": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "metadata_json": {},
    "slug": "string",
    "sort_order": 0,
    "status": "draft",
    "title": "string",
    "updated_at": "2019-08-24T14:15:22Z",
    "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Create Page

POST
/v1/website/{config_id}/pages
AuthorizationBearer <token>

In: header

Path Parameters

config_idConfig Id
Formatuuid

Header Parameters

X-Api-Key?X-Api-Key
content_html?Content Html
Default""
metadata_json?Metadata Json
Default{}

Empty Object

slugSlug
Match^[a-z0-9][a-z0-9\-]*$
Lengthlength <= 200
sort_order?Sort Order
Default0
status?Status
Default"draft"
Match^(draft|published|archived)$
titleTitle
Lengthlength <= 300

Response Body

curl -X POST "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{    "slug": "string",    "title": "string"  }'
{
  "content_html": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "metadata_json": {},
  "slug": "string",
  "sort_order": 0,
  "status": "draft",
  "title": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get Page

GET
/v1/website/{config_id}/pages/{slug}
AuthorizationBearer <token>

In: header

Path Parameters

config_idConfig Id
Formatuuid
slugSlug

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \  -H "X-Api-Key: string"
{
  "content_html": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "metadata_json": {},
  "slug": "string",
  "sort_order": 0,
  "status": "draft",
  "title": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Delete Page

DELETE
/v1/website/{config_id}/pages/{slug}
AuthorizationBearer <token>

In: header

Path Parameters

config_idConfig Id
Formatuuid
slugSlug

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X DELETE "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \  -H "X-Api-Key: string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Update Page

PUT
/v1/website/{config_id}/pages/{slug}
AuthorizationBearer <token>

In: header

Path Parameters

config_idConfig Id
Formatuuid
slugSlug

Header Parameters

X-Api-Key?X-Api-Key
content_html?Content Html
metadata_json?Metadata Json
sort_order?Sort Order
status?Status
title?Title

Response Body

curl -X PUT "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "content_html": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "metadata_json": {},
  "slug": "string",
  "sort_order": 0,
  "status": "draft",
  "title": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}