https://discord.umbraco.com logo
Custom operation IDs
# package-development
w
Is anyone using Custom Operation IDs. I think I talked about this before with @Kevin Jump but my memory is hazzy in my old age. Docs are super confusing two different articles/approaches to OperationIDs. Was following this one https://docs.umbraco.com/umbraco-cms/reference/api-versioning-and-openapi#adding-custom-operation-ids and then now found this one https://docs.umbraco.com/umbraco-cms/tutorials/creating-a-backoffice-api/umbraco-schema-and-operation-ids#operation-ids So is it
IOperationIdHandler
or
IOperationIdSelector
?!?
r
It looks like the default selector calls the handler, after checking which handler can handle it, so I'm inclined to say make a handler and the selector should pick it up as appropriate
w
Thanks Rachel yeh something seems to happen when using
IOperationHandler
Think someone from core team at HQ or docs team needs to clarify and ensure both samples are in sync.
15 Views