https://preprod-api.milkiya.ma/api/agents/59 Return to referer URL

App\Entity\Agent Resource class

Resource Metadata

Short name: "Agent"

Item operations Attributes
get
[
  "method" => "GET"
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
put
[
  "denormalization_context" => [
    "groups" => [
      "profile:update"
    ]
  ]
  "security" => "is_granted('PROFILE_UPDATE', object)"
  "input" => null
  "output" => null
  "method" => "PUT"
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
activate_agent
[
  "denormalization_context" => [
    "groups" => [
      "agent:activate"
    ]
  ]
  "access_control" => "is_granted('ROLE_MANAGER')"
  "method" => "PATCH"
  "path" => "/agent/{id}/activate"
  "controller" => "App\Controller\Agent\Agent\ActivateAgentController"
  "read" => true
  "write" => false
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "json" => [
      "application/merge-patch+json"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
disable_agent
[
  "denormalization_context" => [
    "groups" => [
      "agent:disable"
    ]
  ]
  "access_control" => "is_granted('ROLE_MANAGER')"
  "method" => "PATCH"
  "path" => "/agent/{id}/disable"
  "controller" => "App\Controller\Agent\Agent\DisableAgentController"
  "read" => true
  "write" => false
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "json" => [
      "application/merge-patch+json"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
suspend_agent
[
  "denormalization_context" => [
    "groups" => [
      "agent:suspend"
    ]
  ]
  "access_control" => "is_granted('ROLE_MANAGER')"
  "method" => "PATCH"
  "path" => "/agent/{id}/suspend"
  "controller" => "App\Controller\Agent\Agent\SuspendAgentController"
  "read" => true
  "write" => false
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "json" => [
      "application/merge-patch+json"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
archive_agent
[
  "denormalization_context" => [
    "groups" => [
      "agent:archive"
    ]
  ]
  "access_control" => "is_granted('ROLE_MANAGER')"
  "method" => "PATCH"
  "path" => "/agent/{id}/archive"
  "controller" => "App\Controller\Agent\Agent\ArchiveAgentController"
  "read" => true
  "write" => false
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "json" => [
      "application/merge-patch+json"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
Collection operations Attributes
get
[
  "method" => "GET"
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
post
[
  "security" => "is_granted('ROLE_MANAGER')"
  "controller" => "App\Controller\Manager\Agent\CreateAgentController"
  "input" => null
  "output" => null
  "method" => "POST"
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
accept_terms
[
  "method" => "POST"
  "access_control" => "is_granted('ROLE_AGENT')"
  "path" => "/agent/accept_terms"
  "controller" => "App\Controller\Agent\Agent\AcceptTermsController"
  "openapi_context" => [
    "summary" => "Accept terms"
    "description" => "Accept terms"
  ]
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
milkiya_agents
[
  "security" => "is_granted('PUBLIC_ACCESS')"
  "access_control" => "is_granted('PUBLIC_ACCESS')"
  "normalization_context" => [
    "groups" => [
      "milkiya:read"
    ]
  ]
  "method" => "GET"
  "path" => "/internal/agents"
  "pagination_enabled" => false
  "formats" => [
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
  ]
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
  ]
  "output_formats" => [
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
  ]
]
list_agent_light
[
  "normalization_context" => [
    "groups" => [
      "agent:light"
    ]
  ]
  "method" => "GET"
  "path" => "/agents/light"
  "pagination_enabled" => false
  "input" => null
  "output" => null
  "stateless" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
      "application/json"
      "text/html"
    ]
    "html" => [
      "text/html"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
]
Filters
annotated_app_entity_agent_api_platform_core_bridge_doctrine_orm_filter_search_filter
"ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter"
annotated_app_entity_agent_api_platform_core_bridge_doctrine_orm_filter_boolean_filter
"ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter"
annotated_app_entity_agent_app_api_platform_filter_role_search_filter
"App\ApiPlatform\Filter\RoleSearchFilter"
annotated_app_entity_abstract_collaborator_app_api_platform_filter_current_user_filter
"App\ApiPlatform\Filter\CurrentUserFilter"
annotated_app_entity_abstract_collaborator_api_platform_core_bridge_doctrine_orm_filter_search_filter
"ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter"
annotated_app_entity_abstract_collaborator_app_filter_custom_main_phone_filter
"App\Filter\CustomMainPhoneFilter"
annotated_app_entity_abstract_collaborator_app_filter_full_name_search_filter
"App\Filter\FullNameSearchFilter"
annotated_app_entity_abstract_collaborator_app_filter_directory_list_filter
"App\Filter\DirectoryListFilter"
annotated_app_entity_abstract_collaborator_app_filter_reference_state_filter
"App\Filter\ReferenceStateFilter"
annotated_app_entity_abstract_collaborator_app_api_platform_filter_role_search_filter
"App\ApiPlatform\Filter\RoleSearchFilter"
Attributes
formats
[
  0 => "jsonld"
  1 => "json"
  2 => "html"
  3 => "jsonhal"
  "csv" => [
    "text/csv"
  ]
]
security
"is_granted('ROLE_AGENT') or is_granted('ROLE_MANAGER')"
normalization_context
[
  "groups" => [
    "agent:read"
  ]
  "swagger_definition_name" => "Read"
]
denormalization_context
[
  "groups" => [
    "agent:write"
  ]
  "swagger_definition_name" => "Write"
]
skip_null_values
true
pagination_client_enabled
true
collection
[
  "pagination" => [
    "enabled_parameter_name" => "pagination"
  ]
]
input
null
output
null

Data Providers

No calls to collection data provider have been recorded.

# Answer Item data provider
1 FALSE App\DataProvider\PersonTypeReferenceDataProvider
2 FALSE App\DataProvider\PropertyMatchingItemDataProvider
3 FALSE App\DataProvider\VatReferenceDataProvider
4 FALSE App\Domain\EventManagement\Adapters\Gateway\ApiPlatform\DataProvider\EventSubTypeDataProvider
5 FALSE App\Domain\EventManagement\Adapters\Gateway\ApiPlatform\DataProvider\EventTypeDataProvider
6 TRUE ApiPlatform\Core\Bridge\Doctrine\Orm\ItemDataProvider
Context
[
  "groups" => [
    "profile:update"
    "siege:put"
  ]
  "operation_type" => "item"
  "item_operation_name" => "put"
  "iri_only" => false
  "input" => null
  "output" => null
  "api_allow_update" => true
  "resource_class" => "App\Entity\Reference\ReferenceCollaboratorState"
  "request_uri" => "/api/agents/59"
  "uri" => "https://preprod-api.milkiya.ma/api/agents/59"
  "skip_null_values" => true
  "api_denormalize" => true
  "_read_attributes" => false
  "cache_key" => "dc4f0d1078ff4059b9176e916236f79d-status"
  "deserialization_path" => "status"
  "fetch_data" => true
]

No calls to subresource data provider have been recorded.

Data Persisters

# Answer Data persister
1 FALSE App\DataPersister\BusinessIndicationDataPersist
2 FALSE App\DataPersister\CandidateDataPersist
3 FALSE App\DataPersister\ContactDataPersister
4 FALSE App\DataPersister\MandateDataPersist
5 FALSE App\DataPersister\PrescriberDataPersist
6 FALSE App\DataPersister\PropertyDataPersister
7 FALSE App\DataPersister\PropertyVisitDataPersist
8 FALSE App\DataPersister\TransactionDataPersister
9 FALSE ApiPlatform\Core\Bridge\Symfony\Messenger\DataPersister
10 TRUE ApiPlatform\Core\Bridge\Doctrine\Common\DataPersister