Simple flow
The following guide, we will perform a simple onboarding process where you will play both the innkeeper and a tenant.
This assumes a clean environment built and started as documented above. You may find it easier to just leave tabs open instead of copying and saving the IDs, passwords and keys.
- (Tenant) Make a reservation
- open a new tab to act as a prospective tenant and make a reservation
- navigate to http://localhost:5101
- Click on Create Request
- Fill in request, remember the email address and set Tenant name to something unique.
- Submit Request - copy the email address and Reservation ID.
- (Innkeeper) Approve the Reservation
- open a new tab in a browser to perform innkeeper duties.
- navigate to http://localhost:5101/innkeeper
- Sign-in with:
- Admin Name =
innkeeper - Admin Key =
change-me
- Admin Name =
- Go to the Reservations tab and refresh if needed.
- Approve the Reservation by clicking the checkmark under Actions column
- Copy the Reservation Password (NOTE: this is not happening in production, the reservation password will be delivered to the tenant by email or some other means)
- (Tenant) Check reservation status
- open a new tab to act as a prospective tenant and check the reservation
- navigate to http://localhost:5101
- Click on Check Status
- enter the email address from above and the saved Reservation ID
- Click Check Status and it should be approved.
- Enter in the Reservation password.
- This should be validated and you are presented with your Wallet ID and Wallet Key.
- Copy these down!
- (Tenant) Sign in
- open new tab for the tenant
- navigate to http://localhost:5101
- Enter the saved Wallet ID and Wallet Key
You can use the wallet id and key to retrieve a token and use the Tenant API.
- Open new tab and navigate to http://localhost:8032/api/doc
- Scroll down to POST multitenancy/wallet/{wallet_id}/token
- Expand and click Try it out.
- Populate the body with your Wallet Key
- Enter your Wallet ID in the
wallet_idfield. - Click Execute and check the response.
- Copy the value for
tokenfrom the response. - Scroll to the top (or click on a lock icon).
- In the bottom
AuthorizationHeader (apiKey)section, for the Value field, enterBearer <your token value>and Authorize. - You are now logged in as your tenant/wallet/agent.
- Scroll to GET /tenant, expand, Try it out and Execute.
- These are your tenant's details. Only you are authorized to fetch your tenant data.