Using Web UI
The Admin UI provides a user interface to a number of Domino REST APIs. It thus serves an example what a React application using the Domino REST APIs is capable of. It covers schema, scope, and app management. Anything that can be done using the WebUI can also be done using Postman, curl, SwaggerUI, or similar tools. There are tutorials to walk you through the same.
Note
The screenshots may vary. The screenshots are based on the latest Domino REST API snapshots. Make sure you're up-to-date
This is what the login page looks like.
(Image: Castle Johannisburg, Aschaffeburg, Germany)
You'll need the administrator username and password to access the server.
To use a Domino database in Domino REST API, it must be configured for use in the API. Download Demo.nsf
from Resources and save it in the Notes data directory. Then login to the Domino REST API Admin UI using the administrator user name and password.
For more information on logging in to the Domino REST API Admin UI:
Database Management - REST API
Select Database Management - REST API from the home page.
List available database schemas
Click the Schemas navigation pane and the Schema Management page shows the list of all available schemas.
You can arrange the schemas in Stack View, Card View, Alphabetical View, or NSF View. There is also a provision to search through the list either via Schema Name or NSF Name.
Add a schema
The shape of data available is referred to as a schema. The schema is a JSON file in the design resources of the database. It gets created by a developer with Designer access to the NSF.
This creates an alias to the schema. This, along with a scope, provides access to the database via the Domino REST API. One NSF can have multiple schemas, which is useful to provide different data sets or different levels of access to data.
You can add a schema by creating your own schema or importing a schema.
Create a schema
-
On the Schema Management page, click Add Schema.
-
In the Add New Schema dialog, click Create Schema.
-
Under Available Databases, select a database from the list of databases available to the Domino REST API.
You can search for a database by clicking Search Databases and entering the database name. This filters the list of available databases based on the entered database name. Click the clear icon to remove the entered database name.
-
Under Add New Schema, enter details in the Schema Name and Description, and then select the Formula Engine and Schema Icon for the schema you want to create.
- Click Add.
Import a schema
Use this option if you want to import a new schema from a JSON file produced by exporting database schema as JSON file.
- On the Schema management page, click Add Schema.
-
In the Add New Schema dialog, click Import Schema.
-
Select the JSON database file and click Open. The JSON database file is the exported file from another database or within your server.
-
In the Import Schema dialog:
- Choose the
.nsf
database from the Import Into Database dropdown list. The default.nsf
is from the imported database JSON file. - Update the Icon, Schema Name, Schema Description, and Formula Engine as needed.
- Click Save Schema.
- Choose the
The nsf
database file and schema are added to the schema list.
Note
The imported schema name must be unique. You'll be warned if you try to save a schema to a database that already has a schema with the same name.
Edit a schema
- On the Schema Management page, select the schema you want to edit.
-
On the schema details card, click the edit icon.
-
On the Edit Schema dialog:
- You can select a new icon from the drop-down icon list.
- You can update the description of the schema in the Description.
- You can update the configuration by clicking the toggles to enable or disable the configuration settings. For more information, see Configuration Settings table.
Configuration setting Description DQL Access Enable the setting to allows DQL queries to run against the elements of the schema. A mode named dql
must be created on each form specifying the fields allowed for that form.In $DATA Scope Enable the setting to make schema available in the system $DATA
scope. Disable the setting to limit access to the schema to those with the specific scope.Enable Code feature under development Allow Decryption feature under development Require Revision Enable the setting to require the provision of the correct revision version of the document to update the document through an update endpoint. -
You can enter a valid Notes formula in DQL Formula to limit DQL usage. The formula must evaluate to
@TRUE
for DQL to be allowed. The default is@TRUE
, which means no limitations.
-
Click Save.
List available forms
- Select a schema from the list of schemas to load the details.
-
Select Database Forms from the menu bar to show the list of all the forms for the selected database schema.
Configure a form
To configure a specific form or forms
- From the available forms under Unconfigured Forms, select the form that you would like to configure.
- Click the toggle in the form card of the selected form.
- In the Configure dialog, click Yes.
The selected form is now configured with default settings and listed under Configured Forms.
To configure all forms
- Click Configure All.
All forms are now configured with default settings and listed under Configured Forms.
To unconfigure a form
- From the available forms under Configured Forms, select the form that you would like to unconfigure.
- Click the toggle in the form card of the selected form.
- In the Unconfigure Form dialog, click Yes.
The selected form is now moved under Unconfigured Forms.
To unconfigure all forms
- Click Unconfigure All.
Note
Clicking Unconfigure All removes all configurations you have made to each of the forms.
Change form configuration
-
Select a configured form. This loads the
default
Access Mode for the form. -
Under Show fields from, which shows the fields that can be added to the form, hover over a field item and click the + icon. This adds the field in the form. Repeat this for all the fields to be added.
You can also click Add All if you want to add all the available fields to the form.
-
Set the Read or Write access formula for each of the fields in the Form.
- Click Save.
Note
You can click the trash can icon corresponding to the field to remove the field from the form.
Add a mode
- Select a configured form. This loads the
default
Access Mode for the form. - Click Add Mode.
-
In the Add New Mode dialog, enter the name of the new mode and click Save. The new mode has been added to the
Mode
list -
Add fields.
- Click Save.
Clone a mode
Use Clone Mode to add a new mode based on an existing mode in the same schema.
- Select a configured form. This loads the
default
Access Mode for the form. - From the Mode dropdown list, choose the mode you want to clone, for example the
default
mode. - Click Clone Mode.
-
In the Clone <mode name> dialog, enter the name of the mode and click Save.
The new mode cloned from an existing mode is now available. You can remove or add fields to the new mode.
-
Click Save.
Compare modes
Use this function to see the differences between the modes of a selected form. To use this function, you must have at least two modes in your selected form.
- Select a configured form. This loads the
default
Access Mode for the form. - Click Open Mode Compare. The Mode Compare - <form name> page opens.
- Select the modes to compare from the drop-down lists in the comparison columns. The comparison result is displayed.
Note
- A field available in only one mode is highlighted, and then indicated as Field not existing in the other mode.
- Fields with differences are highlighted.
Tip
- Click the Show only fields with differences toggle to only show fields with differences.
- In case there are too many fields, and you want to find a specific field, you can enter the field name in the Search Field to only display the specific field if available.
- Click Add New Column to add more modes in the comparison.
- Click the close icon to close the Mode Compare - <form name> page.
List available views
- Select a schema from the list of schemas to load the details.
-
Select Database Views from the menu bar. This lists all the views for the selected schema.
Activate a view
To activate a specific view or views:
- Select the view that you want to activate, and then click the corresponding Active option under Status.
Tip
Clicking the Inactive option corresponding to a view deactivates the view. On the Reset Views Columns dialog, click Yes to confirm deactivation of the view.
To activate all views:
- Click Activate All.
Tip
Clicking Deactivate All deactivates all active views. On the Reset ALL View Columns dialog, click Yes to confirm deactivation of all views.
Note
Clicking Deactivate All removes all configurations you have made to each of the views.
To edit a view
- See Edit a database view of a schema for more information.
List available agents
- Select a schema from the list of schemas to load the details.
-
Select Database Agents from the menu bar. This lists all the Agents for the selected database.
Activate an agent
To activate a specific agent or agents
- Select the agent you want to activate, and then click the corresponding Active option under Status.
Tip
Clicking the Inactive option corresponding to an agent deactivates the agent.
To activate all agents
- Click Activate All.
Tip
Clicking Deactivate All deactivates all active agents. On the Reset ALL Agents dialog, click Yes to confirm the deactivation of all agents.
View Source
The Source tab allows you to view the database schema details in JSON format.
- Select a schema from the list of schemas to load the schema details.
-
Select Source from the menu bar to show the details for the selected schema in the following view mode:
- Text Mode - shows the text view of the details of the selected schema in JSON format
- Styled Object - shows the collapsible view of the details of the selected schema in JSON format
Note
-
The database schema JSON details are editable in the Styled Object view mode. For more information, see Edit database schema JSON.
-
To export the schema in a .json file, see Export schema as JSON file.
Database Management - Activation
Select Database Management - Activation from the home page.
Add a scope
Tip
A scope points to a schema that's contained in a database. A database can have many schemas for different use cases and a schema can be pointed to by more than one scope.
-
On the Scope Management page, click Add Scope to add a database.
-
Under Available Schema, select the schema that the scope will belong to.
- Under Add New Scope, fill in the form and click Add.
Note
You can set the Maximum Access Level of the scope to control the maximum access anyone using the scope should have. This prevents an app, which has inherited a user's access rights when the user grants app access, from unauthorized altering of schemas or access control lists. By default, the set maximum access level is Editor. To know more about what each access level allows and to whom the access level is assigned, see Access levels in the ACL.
Application Management - OAuth
Select Application Management - OAuth from the home page.
List available applications
The Application Management page shows the list of all available applications.
Add an application
-
On the Application Management page, click Add Application to add an application.
-
Under Add New Application, fill in the form and click Add.
Kindly note that when your app accesses endpoints that run write operations in the
/setup-v1/
URL path, make sure to add the$SETUP
scope aside from the$DATA
scope to enhance access control in relation to the app inheriting a user's access rights when the user grants app access. -
Hover over the application tile to access options to generate Application Secret, and edit and delete the application.
OAuth Consents
Allows the current user to view and revoke available OAuth consents.
View OAuth consent list
Click OAuth Consents from the navigation pane.
This opens the OAuth Consents pane.
Note
Users logged into the AdminUI that are in the LocalKeepAdmins
group or are Managers in the oauth.nsf
ACL will see all user consents and can revoke them as well.
View OAuth consent details
Click View corresponding to a user in the list to show OAuth consent details, such as scope, app name, URL.
Revoke authorized user
- Click Revoke corresponding to a user in the list that you want the authorization revoked.
- In the Revoke Consent dialog, click Yes.
The user is now removed from the authorized users list.