Date | What/Why |
---|---|
2023/01/30 |
Initial draft. |
2023/05/26 |
Fixed the notation of tool names and parentheses. |
Terms/Abbreviations | Meaning |
---|---|
"Console REST API" |
REST API provided by "Console for AITRIOS" |
"Console Access Library" |
Libraries for using the features of the "Console REST API". There is one for Python and another for TypeScript, but for the purposes of this document, it is meant for Python. |
-
"Portal User Manual"
-
API Reference
-
"Console Access Library" Functional Specifications
-
Use "Console for AITRIOS" through API
-
Example: Import AI models and "Edge Application" into "Console for AITRIOS" and deploy them to edge AI devices through API
-
-
Authenticate to use the API
-
SDK provides the notebook for system client authentication to "Console for AITRIOS"
flowchart TD;
%% definition
classDef object fill:#FFE699, stroke:#FFD700
style legend fill:#FFFFFF, stroke:#000000
%% impl
subgraph legend["Legend"]
process(Processing/User behavior)
end
-
Flow overview
flowchart TD start((Start)) --> id1(1.Get connection information) id1 --> id2(2.Create and edit the configuration file) id2 --> id3(3.Run the notebook) id3 --> finish(((Finish)))
-
Get connection information
-
Get credentials needed to connect to AITRIOS
-
-
Create and edit the configuration file
-
Create the configuration file and set the information gotten in 1
-
-
Run the notebook
-
Run the notebook to authenticate to AITRIOS
-
-
-
See next chapter for details on each flow
-
You have registered as a user through "Portal for AITRIOS" and participated in the AITRIOS project
-
Jump to the
README.md
in theset_up_console_client
directory from the hyperlink in theREADME.md
in the directory for each feature that uses the "Console Access Library"
Get the following information to connect to "Console for AITRIOS" using the API:
This information is used in Create and edit the configuration file of the next section.
-
Server URL
Check the following from the documentation of this function (README.md
) :-
API server base URL
-
Authentication server URL
-
-
Client app details
Get from the list of client apps in "Portal for AITRIOS":
See "Portal User Manual" for details.-
Client ID
-
Secret
-
Create the configuration file in the set_up_console_client
directory, and set the preceding connection information.
Note
|
All parameters are required. |
Note
|
The parameters passed to the "Console Access Library" API are as specified in the "Console Access Library" API. |
Configuration | Meaning | Range | Remarks |
---|---|---|---|
|
API server base URL |
String |
Don’t abbreviate
|
|
Authentication server URL |
String |
Don’t abbreviate
|
|
Client ID required for authentication |
String |
Don’t abbreviate
|
|
Secret required for authentication |
String |
Don’t abbreviate
|
-
Open the notebook, *.ipynb, in the directory for client authentication under the
common
directory, and run the python scripts in it-
The scripts do the following:
-
Checks that configuration file exists in the execution directory
-
If an error occurs, the error description is displayed and running is interrupted.
-
-
Checks that configuration file includes each parameter
-
If an error occurs, the error description is displayed and running is interrupted.
-
-
Reads the value of each parameter from configuration file to call API for system client authentication
-
If an error occurs, the error description is displayed and running is interrupted.
-
If authentication succeeds and the client instance is created successfully, displays a successful message
-
-
Saves the client instance for use by other notebooks in the SDK
-
-
See "Console Access Library" Functional Specifications for details on errors and response times
-
%%{init:{'themeVariables':{'fontSize':'24px'}, 'themeCSS':'text.actor {font-size:18px !important;} .messageText {font-size:18px !important;}'}}%%
sequenceDiagram
participant user as User
participant portal as Portal<br>for AITRIOS
participant container as Dev Container
participant access_lib as Console Access<br>Library
participant auth_server as Authentication<br>server
user ->>portal : Access<br>Web UI
portal ->>user : Display<br>client ID/secret
user->>container: Create and edit<br>the configuration file
user->>container: Run the notebook
container->> access_lib: Generate a<br>Config instance
access_lib-->>container: Response<br>※In case of success<br>Config instance
container->> access_lib: Run the API<br>to get access token
access_lib->>auth_server: Authentication<br>request
auth_server-->>access_lib: Response
access_lib-->>container: Response
container->>user: Results<br> (Access token acquisition<br>success/failure)
container->>access_lib: Generate a<br>Client instance
access_lib-->>container: Response<br>※In case of success<br>Client instance
container->>user: Results<br> (Client generation<br>success/failure)
-
Users can take advantage of each feature of the "Console for AITRIOS" API without being aware of its internal operation
-
UI response time of 1.2 seconds or less
-
If processing takes more than 5 seconds, indicates that processing is in progress with successive updates
-
Provides users with documentation of usage tools and version information