-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
From Admin UI, logged in as admin@staff.ds
Note: This applies to all identities (Individual, Staff, etc..)
POST /organization-persona
{
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "Ziggy Music Store",
"fr": "Ziggy Music Store [fr]"
},
"organization": "/organizations/a55d1565-e38b-436f-a8a7-66488b68a223",
"data": {
"test": "test"
},
"identity": "Organization",
"identityUuid": "a55d1565-e38b-436f-a8a7-66488b68a223",
"weight": 0,
"version": 1
}
Response:
{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "Method call not allowed.",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/srv/api-platform/src/AppBundle/Entity/Attribute/Accessor/Persona/Identity.php",
"line": 21,
"args": []
},
{
"namespace": "AppBundle\\Entity",
"short_class": "Persona",
"class": "AppBundle\\Entity\\Persona",
"type": "->",
"function": "setIdentity",
"file": "/srv/api-platform/vendor/digitalstate/core/src/Ds/Component/Security/Serializer/Normalizer/Acl/PropertyNormalizer.php",
"line": 86,
"args": [
[
"string",
"Organization"
]
]
},
{
"namespace": "Ds\\Component\\Security\\Serializer\\Normalizer\\Acl",
"short_class": "PropertyNormalizer",
"class": "Ds\\Component\\Security\\Serializer\\Normalizer\\Acl\\PropertyNormalizer",
"type": "->",
"function": "denormalize",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 264,
"args": [
[
"array",
{
"owner": [
"string",
"BusinessUnit"
],
"ownerUuid": [
"string",
"c11c546e-bd01-47cf-97da-e25388357b5a"
],
"title": [
"array",
{
"en": [
"string",
"Ziggy Music Store"
],
"fr": [
"string",
"Ziggy Music Store [fr]"
]
}
],
"organization": [
"string",
"/organizations/a55d1565-e38b-436f-a8a7-66488b68a223"
],
"data": [
"array",
{
"test": [
"string",
"test"
]
}
],
"identity": [
"string",
"Organization"
],
"identityUuid": [
"string",
"a55d1565-e38b-436f-a8a7-66488b68a223"
],
"weight": [
"integer",
0
],
"version": [
"integer",
1
]
}
],
[
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
[
"string",
"json"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"persona_input"
]
]
],
"collection_operation_name": [
"string",
"post"
],
"api_allow_update": [
"boolean",
false
],
"resource_class": [
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
"request_uri": [
"string",
"/app_dev.php/organization-personas"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalizeObject",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 174,
"args": [
[
"array",
{
"owner": [
"string",
"BusinessUnit"
],
"ownerUuid": [
"string",
"c11c546e-bd01-47cf-97da-e25388357b5a"
],
"title": [
"array",
{
"en": [
"string",
"Ziggy Music Store"
],
"fr": [
"string",
"Ziggy Music Store [fr]"
]
}
],
"organization": [
"string",
"/organizations/a55d1565-e38b-436f-a8a7-66488b68a223"
],
"data": [
"array",
{
"test": [
"string",
"test"
]
}
],
"identity": [
"string",
"Organization"
],
"identityUuid": [
"string",
"a55d1565-e38b-436f-a8a7-66488b68a223"
],
"weight": [
"integer",
0
],
"version": [
"integer",
1
]
}
],
[
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
[
"string",
"json"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"persona_input"
]
]
],
"collection_operation_name": [
"string",
"post"
],
"api_allow_update": [
"boolean",
false
],
"resource_class": [
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
"request_uri": [
"string",
"/app_dev.php/organization-personas"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalize",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 132,
"args": [
[
"array",
{
"owner": [
"string",
"BusinessUnit"
],
"ownerUuid": [
"string",
"c11c546e-bd01-47cf-97da-e25388357b5a"
],
"title": [
"array",
{
"en": [
"string",
"Ziggy Music Store"
],
"fr": [
"string",
"Ziggy Music Store [fr]"
]
}
],
"organization": [
"string",
"/organizations/a55d1565-e38b-436f-a8a7-66488b68a223"
],
"data": [
"array",
{
"test": [
"string",
"test"
]
}
],
"identity": [
"string",
"Organization"
],
"identityUuid": [
"string",
"a55d1565-e38b-436f-a8a7-66488b68a223"
],
"weight": [
"integer",
0
],
"version": [
"integer",
1
]
}
],
[
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
[
"string",
"json"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"persona_input"
]
]
],
"collection_operation_name": [
"string",
"post"
],
"api_allow_update": [
"boolean",
false
],
"resource_class": [
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
"request_uri": [
"string",
"/app_dev.php/organization-personas"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "deserialize",
"file": "/srv/api-platform/vendor/api-platform/core/src/EventListener/DeserializeListener.php",
"line": 71,
"args": [
[
"array",
{
"owner": [
"string",
"BusinessUnit"
],
"ownerUuid": [
"string",
"c11c546e-bd01-47cf-97da-e25388357b5a"
],
"title": [
"array",
{
"en": [
"string",
"Ziggy Music Store"
],
"fr": [
"string",
"Ziggy Music Store [fr]"
]
}
],
"organization": [
"string",
"/organizations/a55d1565-e38b-436f-a8a7-66488b68a223"
],
"data": [
"array",
{
"test": [
"string",
"test"
]
}
],
"identity": [
"string",
"Organization"
],
"identityUuid": [
"string",
"a55d1565-e38b-436f-a8a7-66488b68a223"
],
"weight": [
"integer",
0
],
"version": [
"integer",
1
]
}
],
[
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
[
"string",
"json"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"persona_input"
]
]
],
"collection_operation_name": [
"string",
"post"
],
"api_allow_update": [
"boolean",
false
],
"resource_class": [
"string",
"AppBundle\\Entity\\OrganizationPersona"
],
"request_uri": [
"string",
"/app_dev.php/organization-personas"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\EventListener",
"short_class": "DeserializeListener",
"class": "ApiPlatform\\Core\\EventListener\\DeserializeListener",
"type": "->",
"function": "onKernelRequest",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php",
"line": 106,
"args": [
[
"array",
[
[
"object",
"ApiPlatform\\Core\\EventListener\\DeserializeListener"
],
[
"string",
"onKernelRequest"
]
]
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "WrappedListener",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener",
"type": "->",
"function": "__invoke",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher"
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php",
"line": 174,
"args": [
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "doDispatch",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php",
"line": 43,
"args": [
[
"array",
[
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
]
]
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php",
"line": 146,
"args": [
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "TraceableEventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php",
"line": 129,
"args": [
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php",
"line": 68,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/srv/api-platform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php",
"line": 168,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
],
[
"boolean",
true
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "/srv/api-platform/web/app_dev.php",
"line": 28,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}
]
}
Metadata
Metadata
Assignees
Labels
No labels