Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 879 Bytes

gone_item.md

File metadata and controls

27 lines (21 loc) · 879 Bytes

Gone items

To represent content that is no longer available, the content store will support items with a schema_name of "gone". These will cause a gone route to be setup in the router so that the item returns a 410 HTTP status.

Items with a schema_name of gone will have all routes setup in the same way as other item types (described in route_registration.md), with the exception that instead of routing to the rendering_app, routes will be created as gone routes.

For example, given the following request:

PUT /content/gone-foo
{
  "schema_name": "gone",
  "document_type": "gone",
  "publishing_app": "publisher",
  "routes": [
    {"path": "/gone-foo", "type": "exact"},
    {"path": "/gone-foo/bar", "type": "exact"}
  ]
}

The following route would be created:

/gone-foo (exact) => gone
/gone-foo/bar (exact) => gone