Skip to content

API Entry point

As a REST API, the entry point allows navigation to other resources. The root of the API is a resource of type EntryPoint:

{
"@context": "https://dlcs.github.io/vocab/context/future.json",
"@id": "https://api.dlc.services",
"@type": "vocab:EntryPoint",
"customers": "https://api.dlc.services/customers",
"originStrategies": "https://api.dlc.services/originStrategies",
"storagePolicies": "https://api.dlc.services/storagePolicies",
"deliveryChannelPolicies": "https://api.dlc.services/deliveryChannelPolicies",
"queue": "https://api.dlc.services/queue"
}

This EntryPoint resource is like the API home page, and has the following properties:

A link to a paged Collection of all Customers in the API instance. This is only useful for navigation to your own Customer resource: while the endpoint provides a list of Customer URIs, they don’t have any information (not even a name) and you can only further navigate into your own.

domainrangereadonlywriteonly
vocab:EntryPoint🔗 hydra:Collection (of vocab:Customer)TrueFalse
MethodLabelExpectsReturnsStatus
GETRetrieves all customers-hydra:Collection200 OK

For example, a GET on the customers URI might return:

{
"@context": "https://dlcs.github.io/vocab/context/future.json",
"@id": "https://api.dlc.services/customers",
"@type": "Collection",
"totalItems": 4,
"pageSize": 100,
"member": [
{
"@id": "https://api.dlc.services/customers/1",
"@type": "vocab:Customer"
},
{
"@id": "https://api.dlc.services/customers/2",
"@type": "vocab:Customer"
},
{
"@id": "https://api.dlc.services/customers/3",
"@type": "vocab:Customer"
},
{
"@id": "https://api.dlc.services/customers/4",
"@type": "vocab:Customer"
}
]
}

These are only useful as navigation properties to an individual Customer, and you are only permitted to see your own Customer resource.

A link to a paged Collection of origin strategies. These are used when constructing Customer Origin Strategies to assist the platform in fetching assets from your repositories.

See Origin strategies for a discussion.

domainrangereadonlywriteonly
vocab:EntryPoint🔗 hydra:Collection (of vocab:OriginStrategy)TrueFalse
MethodLabelExpectsReturnsStatus
GETRetrieves global origin strategies-hydra:Collection200 OK

A link to a paged Collection of global storage policies. These represent pre-canned limits that your account might be assigned. You do not need to interact with these resources. See Storage for more information.

domainrangereadonlywriteonly
vocab:EntryPoint🔗 hydra:Collection (of vocab:StoragePolicy)TrueFalse
MethodLabelExpectsReturnsStatus
GETRetrieves global storage policies-hydra:Collection200 OK

The most common mechanism for adding new assets to the platform is to post batches of assets to your dedicated customer queue. The entry point also provides a link to this global queue, to report on the current workload of the platform.

domainrangereadonlywriteonly
vocab:EntryPoint🔗 vocab:QueueSummaryTrueFalse
MethodLabelExpectsReturnsStatus
GETA read-only view of how busy the platform as a whole is-vocab:QueueSummary200 OK

See Queues for more.