Налаштування та теги
Атрибути, набори атрибутів, правила та теги — розширюйте об'єкти Flowtly власними полями.
Атрибут
Endpoints
| GET | /attributes | Отримує колекцію ресурсів Attribute. |
| POST | /attributes | Створює ресурс Attribute. |
| GET | /attributes/{id} | Отримує ресурс Attribute. |
| PATCH | /attributes/{id} | Оновлює ресурс Attribute. |
| DELETE | /attributes/{id} | Видаляє ресурс Attribute. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| name* | string | |
| type* | string | |
| shift | integer | |
| required | boolean | |
| multiple | boolean | |
| defaultValue | stringnull | |
| formatPattern | stringnull |
Тег
Endpoints
| GET | /tags | Отримує колекцію ресурсів Tag. |
| POST | /tags | Створює ресурс Tag. |
| GET | /tags/{id} | Отримує ресурс Tag. |
| DELETE | /tags/{id} | Видаляє ресурс Tag. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| entityMapping | array | |
| id | string | |
| tagDefinition* | string (iri-reference) | |
| relationName | string | |
| relationId* | string | |
| weight | string | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| possibleRelationNames | string |
Значення атрибута
Endpoints
| GET | /attribute-entity-values | Отримує колекцію ресурсів AttributeValue. |
| POST | /attribute-entity-values | Створює ресурс AttributeValue. |
| GET | /attribute-entity-values/{id} | Отримує ресурс AttributeValue. |
| PATCH | /attribute-entity-values/{id} | Оновлює ресурс AttributeValue. |
| DELETE | /attribute-entity-values/{id} | Видаляє ресурс AttributeValue. |
| GET | /attribute-values | Отримує колекцію ресурсів AttributeValue. |
| POST | /attribute-values | Створює ресурс AttributeValue. |
| GET | /attribute-values/{id} | Отримує ресурс AttributeValue. |
| PATCH | /attribute-values/{id} | Оновлює ресурс AttributeValue. |
| DELETE | /attribute-values/{id} | Видаляє ресурс AttributeValue. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| id | string | |
| attribute* | string (iri-reference) | |
| relationName | string | |
| relationId* | string | |
| value* | string | |
| dateFrom | string,null (date-time) | |
| dateTo | string,null (date-time) |
Набір атрибутів
Endpoints
| GET | /attribute-sets | Отримує колекцію ресурсів AttributeSet. |
| POST | /attribute-sets | Створює ресурс AttributeSet. |
| GET | /attribute-sets/{id} | Отримує ресурс AttributeSet. |
| PATCH | /attribute-sets/{id} | Оновлює ресурс AttributeSet. |
| DELETE | /attribute-sets/{id} | Видаляє ресурс AttributeSet. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| name* | string | |
| relationName* | string | |
| icon | stringnull |
Атрибут набору атрибутів
Endpoints
| GET | /attribute-set-attributes | Отримує колекцію ресурсів AttributeSetAttribute. |
| POST | /attribute-set-attributes | Створює ресурс AttributeSetAttribute. |
| GET | /attribute-set-attributes/{id} | Отримує ресурс AttributeSetAttribute. |
| PATCH | /attribute-set-attributes/{id} | Оновлює ресурс AttributeSetAttribute. |
| DELETE | /attribute-set-attributes/{id} | Видаляє ресурс AttributeSetAttribute. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| id | string | |
| attributeSet* | object | |
| attribute* | object | |
| required | boolean |
Правило атрибута
Endpoints
| GET | /attribute-rules | Отримує колекцію ресурсів AttributeRule. |
| POST | /attribute-rules | Створює ресурс AttributeRule. |
| GET | /attribute-rules/{id} | Отримує ресурс AttributeRule. |
| PATCH | /attribute-rules/{id} | Оновлює ресурс AttributeRule. |
| DELETE | /attribute-rules/{id} | Видаляє ресурс AttributeRule. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| attributeSet* | string,null (iri-reference) | |
| attribute | string,null (iri-reference) | |
| name* | string |
Ціна атрибута
Endpoints
| GET | /attribute-prices | Отримує колекцію ресурсів AttributePrice. |
| POST | /attribute-prices | Створює ресурс AttributePrice. |
| GET | /attribute-prices/{id} | Отримує ресурс AttributePrice. |
| PATCH | /attribute-prices/{id} | Оновлює ресурс AttributePrice. |
| DELETE | /attribute-prices/{id} | Видаляє ресурс AttributePrice. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| attributeRule* | string (iri-reference) | |
| amount* | string | |
| currency* | string (iri-reference) | |
| dateFrom* | string,null (date-time) |
Визначення тега
Endpoints
| GET | /tag-definitions | Отримує колекцію ресурсів TagDefinition. |
| POST | /tag-definitions | Створює ресурс TagDefinition. |
| GET | /tag-definitions/{id} | Отримує ресурс TagDefinition. |
| PATCH | /tag-definitions/{id} | Оновлює ресурс TagDefinition. |
| DELETE | /tag-definitions/{id} | Видаляє ресурс TagDefinition. |
| GET | /tag-definitions/autocomplete | Отримує колекцію ресурсів TagDefinition. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| id | string | |
| name* | string | |
| level* | integer | |
| label | string | |
| tagGroup* | string (iri-reference) | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Група тегів
Endpoints
| GET | /tag-groups | Отримує колекцію ресурсів TagGroup. |
| POST | /tag-groups | Створює ресурс TagGroup. |
| GET | /tag-groups/{id} | Отримує ресурс TagGroup. |
| PATCH | /tag-groups/{id} | Оновлює ресурс TagGroup. |
Поля схеми
| Поле | Тип | Опис |
|---|---|---|
| id | string | |
| name* | string | |
| code | string | |
| allowedRelations | arraynull |
Умова
Endpoints
| GET | /condition/{month}/contractor-groups | Отримує колекцію ресурсів Condition. |
| GET | /condition/{month}/contractors | Отримує колекцію ресурсів Condition. |
| GET | /condition/{month}/holidays | Отримує колекцію ресурсів Condition. |
| GET | /condition/{month}/projects | Отримує колекцію ресурсів Condition. |