Introduce new PUT experience API. See RFC update for more details.
This PR adds two new experience root-level endpoints:
PUT /experience: Init a brand new interaction with a given interaction event. A new interaction instance will be created and overwrite any existing interaction data in the session.
PUT /experience/interaction-event: Interchange between Register and SignIn.
Also includes the following refactoring:
Update the identification endpoint payload. InteractionEvent is removed from the body. Per our latest design, the interaction event should be specified ahead by calling the newly added PUT /experience API.
Update the ExperienceInteraction class constructor. Make the interactionDetails input optional. If no interactionDetails value is provided, create a brand new empty instance.
Append the "interaction-data" to all the logEntries on save. This can attach the latest interaction status context to all the audit logs created during the interaction.
Summary
Introduce new PUT experience API. See RFC update for more details.
This PR adds two new experience root-level endpoints:
PUT /experience
: Init a brand new interaction with a given interaction event. A new interaction instance will be created and overwrite any existing interaction data in the session.PUT /experience/interaction-event
: Interchange betweenRegister
andSignIn
.Also includes the following refactoring:
InteractionEvent
is removed from the body. Per our latest design, the interaction event should be specified ahead by calling the newly addedPUT /experience
API.ExperienceInteraction
class constructor. Make theinteractionDetails
input optional. If nointeractionDetails
value is provided, create a brand new empty instance.logEntries
on save. This can attach the latest interaction status context to all the audit logs created during the interaction.Testing
Interaction case added.
Checklist
.changeset