APS Type (hereafter, type) is a formal JSON schema [JSON-SCH] used for creating and managing a set of APS resources instantiated from the type. All resources of a certain type must be provisioned and managed by a certain service, which is the resource factory for this type on the application side. It means every service declared in a package must be bound to a type defined in the same package. According to the diagram below, when the APS controller receives a REST request for an operation, e.g. POST, over a resource of a certain type, e.g. “vps”, it forwards the request to the service bound with this type, i.e. to the “/vpses” service.
Before you start working with types (schemas), get familiar with the following formal terms derived from JSON definition in [RFC-4627]:
Walk through the following sections to get familiar with type definition.