Stream: hapi
Topic: adding custom Operations
Patrick Werner (Jan 20 2020 at 23:11):
in the CG WG we currently developing some custom operations in the CG IG context. The question is how to integrate them into hapi (jpastarter).
Patrick Werner (Jan 20 2020 at 23:13):
Thinking back to implementing $document into hapi, i remembered it to be quite complex in terms of many modules had to be modified. E.g. the tinder plugin.
Is this still the same? Or can i just add another provider in the jpastarter project/ are multiple providers for the same resource type supported now?
Patrick Werner (Feb 04 2020 at 15:43):
bump
@James Agnew ?
Patrick Werner (Mar 25 2020 at 13:12):
anyone?
James Agnew (Mar 25 2020 at 15:30):
Do you mean this in the context of just a custom operation for your own project? If so, why not just put it in its own provider class and register that with the server?
Or is this something you want to contribute back to hapi?
Patrick Werner (Mar 25 2020 at 16:24):
Patrick Werner said:
Thinking back to implementing $document into hapi, i remembered it to be quite complex in terms of many modules had to be modified. E.g. the tinder plugin.
Is this still the same? Or can i just add another provider in the jpastarter project/ are multiple providers for the same resource type supported now?
ohhhh. Yes you are right. All the tinder stuff was only needed because this was contributed to hapi back then.
Patrick Werner (Mar 25 2020 at 16:25):
Had the misgiving that only one provider per resource is allowed.
Last updated: Apr 12 2022 at 19:14 UTC