The Status Model – is a model for show platform status parameters. Model fields are presented in the table (Table 4.11), with an example below (Listing 4.8). There are the following types of this model (Table 4.12).
Table 4.11 – Fields of Status Model
№
Key
Type
Exists
Description
1
id
id, integer
required
Status identifier
2
title
string
required
Status title
Listing 4.8 – Example of Status Model (JSON)
{
"id": "1",
"title": "pending",
}
Table 4.12 – Status Types
№
Title
Description
1
Pending
Waiting for activation
2
Invalid
Broken
3
Active
In use
4
Suspended
I pause for some reason. Waiting for reactivation.