APS Type is a formal JSON schema JSON-SCH used for creating and managing a set of APS resources instantiated from the APS type.
In this document:
All resources of a certain APS type must be provisioned and managed by a certain service, which is
the resource factory for this APS type on the application side. It means every service declared in a package
must be bound to an APS type defined in the same package. According to the diagram below,
when the APS controller receives a REST request for an operation, for example, POST, over a resource of a certain APS type,
for example, vps
,
it forwards the request to the service bound with this APS type, that is to the /vpses
service.
When a service is declared in a Package Structure, the Application Services declaration must include the reference to the schema file that defines the related APS type.
Before you start working with APS types (schemas), get familiar with the following formal terms derived from JSON definition in RFC-4627:
string
, and value is a string
, number
, boolean
, null
, array
, or object
.array
is represented as a pair of square brackets [ ] surrounding zero or more values.string
begins and ends with quotation marks, for example, “VPS Cloud”.application/json
.Walk through the following sections to get familiar with APS type definition.