Common Concepts
REST API
REST API is a set of APIs used to log in to the web server. REST APIs are executed through HTTP requests. Specifically, REST APIs receive the GET, PUT, POST, and DELETE requests and respond to the requests with JSON data.
The format of an HTTP request is as follows: http://<Process IP>:<Process Port>/<Path>
The Process_IP indicates the IP address of the server node where the process resides, and Process_Port indicates the process listening port.
For example, http://10.162.181.57:32261/config.
Basic Authentication
In HTTP, basic authentication is designed to allow a web browser or other client programs to provide credentials in the form of a username and password when making a request.
Before a request is sent, a space is added by using Basic to identify basic authentication, and the username is appended with a colon and concatenated with the password. Then, the character string is encoded using the Base64 algorithm.
For example:
If the username is admin and the password is Asd#smSisn$123, the combined character string is admin:Asd#smSisn$123. After the character string is encoded using the Base64 algorithm, YWRtaW46QWRtaW5AMTIz is generated. Then the basic authentication flag is added to obtain Basic YWRtaW46QWRtaW5AMTIz. Finally, the encoded character string is sent out, and the receiver decodes it to obtain a character string of the username and password separated by a colon.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.