Stores and Templates

Templates are readily prepared installations of modern Web Applications. We went through the hassle of installing a secure base system, adding all components, like databases, etc. required by the application and tweaking the system settings in order to provide you an optimal, Ubuntu based environment for your choosen Web Application. All Templates are configured giving you the best price-performance ratio. Later in this documentation you will create your own Application based on these Templates. We separated our Templates into different Stores for you to make browsing the different kind of Web Applications we provide more convenient.

Look up available Stores

Your first call is going to fetch a list of currently available Stores. Be sure to check this list on a regular base as we are always adding new types of Web Application. The URL for this call was provided by the previous call of your root endpoint, identified by the relation stores.

$ curl -u demo:demo https://d9tready.com/rest/stores
 [
     {
         "_links": [
             {
                 "href": "https://d9tready.com/rest/stores/blog-cms",
                 "rel": "self"
             },
             {
                 "href": "https://d9tready.com/rest/stores/blog-cms/templates",
                 "rel": "templates"
             }
         ],
         "id": "blog-cms",
         "title": "Blog / CMS"
     },
     ...
]

The request above provided us with a list of available Stores.

  • id - Unique identifier of the Store
  • title - Name of the Store

Each Store comes with a list of links for subsequent calls.

  • self - Access to Store Resource.
  • templates - Get all available Templates of the particular Store

Look up available Templates

Your second call is going to fetch a list of currently available Templates. Be sure to check this list on a regular base as we are always adding brand new Templates. The URL for this call was provided by the previous call of your root endpoint, identified by the relation templates.

$ curl -u demo:demo https://d9tready.com/stores/blog-cms/templates
 [
     {
         "_links": [
             {
                 "href": "https://d9tready.com/rest/stores/blog-cms/templates/drupal",
                 "rel": "self"
             },
             {
                 "href": "https://d9tready.com/rest/stores/blog-cms/templates/drupal/versions",
                 "rel": "versions"
             }
         ],
         "id": "drupal",
         "title": "Drupal"
     },
     ...
]

The request above provided us with a list of available Templates.

  • id - Unique identifier of the Template
  • title - Name of the Template

Each Template comes with a list of links for subsequent calls.

  • self - Access to Template Resource.
  • versions - Get all available versions of the particular Template

Check for your favorite version

Most of our Templates provide a variety of different versions of your favorite Application. Often new versions are incompatible with older ones, so you have the choice of getting a specific version matching your needs. The URL for this call was provided by the previous call identified by the relation versions.

$ curl -u demo:demo https://d9tready.com/rest/stores/blog-cms/templates/drupal/versions
 [
     {
         "memory_limit_minimum": 256,
         "image": "d9t:trusty:lamp:drupal:734",
         "id": "drupal-734",
         "title": "7.34"
     },
    ...
]

The request above provided us with a list of versions available for the choosen Template in the previous step.

  • id - Unique identifier of the Version
  • title - Name of the Version
  • image - Image of the ready installed environment
  • memory_limit_minimum - Minimum required memory for startup

Now that we have found our Application in its version we can go on to the next Chapter and create an Application for our own use out of the Template.

Table Of Contents

Previous topic

REST API Basics

Next topic

Applications