This is a Fusebit Function that serves a JSON Forms based web form and stores the collected information in a durable session before redirecting back to the client application.
General flow:
- Client app creates a new session that specifies the redirect URL of the final callback.
- Client redirects the browser to the Fusebit Function and provides the session Id.
- User fills out the web form.
- The form post-back stores the collected information in the session and redirects back to the client application.
git clone git@github.com:fusebit/custom-form.git
cd custom-form
fuse function deploy -b contoso custom-form -d ./
Authorization: requires a bearer access token with function:* permission on the {functionBaseUrl}
Creates a new session using information in the body . The body must at minimum specify the redirectUrl for the final redirect. Returns a body with sessionId identifier of the session.
Authorization: requires a bearer access token with function:* permission on the {functionBaseUrl}
Returns the current value of the session or HTTP 404 if not found.
Authorization: requires a bearer access token with function:* permission on the {functionBaseUrl}
Deletes the session.
Authorization: none
Renders the web form associated with the sessionId.
Authorization: valid sessionId value specified in the body of the request.
Web form post-back. Stores the collected parameters in the session and HTTP 302 redirects the browser to the redirectUrl specified when the session was created.