https://api-demo.web.milkiya.ma/api/internal/agents

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

# Answer Collection data provider
1 FALSE App\DataProvider\PersonTypeReferenceDataProvider
2 FALSE App\DataProvider\VatReferenceDataProvider
3 FALSE App\Domain\BusinessRequest\Adapters\Controllers\ApiPlatform\RequestList\DataProvider\RequestListDataProvider
4 FALSE App\Domain\EventManagement\Adapters\Controllers\ApiPlatform\GetEventList\DataProvider\EventListDataProvider
5 FALSE App\Domain\EventManagement\Adapters\Gateway\ApiPlatform\DataProvider\EventSubTypeDataProvider
6 FALSE App\Domain\EventManagement\Adapters\Gateway\ApiPlatform\DataProvider\EventTypeDataProvider
7 FALSE App\Domain\PropertyMatching\Adapters\Controller\ApiPlatform\CalculateMatching\DataProvider\PropertyMatchingResultDataProvider
8 TRUE ApiPlatform\Core\Bridge\Doctrine\Orm\CollectionDataProvider
Context
[
  "groups" => [
    "milkiya:read"
  ]
  "operation_type" => "collection"
  "collection_operation_name" => "milkiya_agents"
  "iri_only" => false
  "input" => null
  "output" => null
  "resource_class" => "App\Entity\Agent"
  "request_uri" => "/api/internal/agents"
  "uri" => "https://api-demo.web.milkiya.ma/api/internal/agents"
  "skip_null_values" => true
]

No calls to item data provider have been recorded.

No calls to subresource data provider have been recorded.

Data Persisters

No calls to data persister have been recorded.