This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entity": { | |
"stateContract": { | |
"id": "429d32ca-d7fc-402e-834c-e178ec111375", | |
"fullName": "wer werwer", | |
"statute": "wer wer wer", | |
"approvedBY": "wer wrewe", | |
"supplierName": "wrwr we", | |
"supplierFullName": "wer", | |
"supplierAuthority": "we werw rwr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"page": 1, | |
"limit": 10, | |
"pages": 1, | |
"total": 2, | |
"_links": { | |
"self": { | |
"href": "/api/list_of_lots?limit=10" | |
}, | |
"first": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "StateContract", | |
"type": "object", | |
"$schema": "http:\/\/json-schema.org\/draft-04\/schema#", | |
"properties": { | |
"id": { | |
"type": "string", | |
"title": "Id" | |
}, | |
"fullName": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"start": "posted", | |
"end": "execution_gk", | |
"view": [ | |
{ | |
"value": "Список лотов", | |
"url": "/api/list_of_lots/<page>/<size>", | |
"method": "GET", | |
"roles": [ | |
"sekretar_kk", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
controls: | |
list_of_lots: | |
value: Список лотов | |
url: /api/list_of_lots/<page>/<size> | |
method: GET | |
roles: [ sekretar_kk, chlen_kk, predsedatel_kk, zamestitel_pkk, monitor, expert, coordinator, specialist_depzak, rukovoditel_dz ] | |
filters_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
controls: | |
list_of_lots: | |
value: Список лотов | |
url: /api/list_of_lots/<page>/<size> | |
method: GET | |
filters_data: | |
value: Список данных для фильтров | |
url: /api/filters_data | |
method: GET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processes: | |
gk.lot: | |
default: workflow1 | |
workflows: | |
workflow3: | |
start: draft | |
end: [ planned ] | |
steps: | |
draft: | |
label: Черновик |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @var guid | |
* | |
* @ORM\Column(name="id", type="guid", nullable=false) | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="UUID") | |
* @ORM\SequenceGenerator(sequenceName="state_contract_id_seq", allocationSize=1, initialValue=1) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace StorageBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Knp\JsonSchemaBundle\Annotations as Json; | |
use StorageBundle\Entity\BankGuarantee; | |
use StorageBundle\Entity\Surety; | |
use StorageBundle\Entity\Lot; | |
use StorageBundle\Entity\Users; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ApiBundle\Form\DataTransformer; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\Form\DataTransformerInterface; | |
use Symfony\Component\Form\Exception\TransformationFailedException; | |
class EntityToIdTransformer implements DataTransformerInterface | |
{ |