...
- Go to Service > Stations and Devices
- Select a required restaurant and go to the cash server
- In the server properties:
- Specify a free port in the HTTP Data Port field. Optionally, enable the Use Free Listen Port setting to make the server choose a different port when the port specified in the HTTP Data Port property is busy.
- In the HTTP Restrictions Rights section, select the HTTP _ Access privilege in all fields
Image Added
- Save Changesthe changes
- Reboot Restart the cash server.
If you want need to create a separate privilege and role with HTTPS access right, click below.
Expand |
---|
title | Creating a Privilege and a Role |
---|
|
- Go to
|
...
- Service > Manager Station > Object Privileges
|
...
...
...
Image Added- Go to
|
...
...
- Reporting Servers
- Select the required
|
...
- reference server
- In the server properties:
- In the HTTP Server section, find the HTTP Data Port field and enter a free port.
|
...
- Check the Use Free Listen Port
|
...
...
- make the program select a different port when the port specified in the HTTP Data Port property is busy.
To access the web interface of this server, you can use:
- The port specified in the reference server properties
|
...
...
- station — HTTP Data Port
- The port specified in
|
...
...
- of rk7srv.ini — the port parameter
|
...
...
...
- select the created privilege in all fields
- In the Restrictions section, include the created privilege in the object privilege
Image Added
- Save Changes
- Restart the server
- In the manager station, go to
|
...
- Service > Stations and Devices
- Select a required restaurant and go to the cash server
- In the server properties:
- In the HTTP Server section, find the HTTP Data Port field and
|
...
- specify a free port.
Enable the Use Free Listen Port setting to
|
...
- make the program select a different port when the port specified in the HTTP Data Port property is busy.
To access the web interface of this server, you can use:
- The port specified in the
|
...
- reference server properties in the manager
|
...
- station — HTTP Data Port
- The port specified
|
...
...
- of rk7srv.ini — the port parameter
|
...
...
...
- select the created privilege in all fields
Image Added
Create a role with rights to the created privilege
Image Added Info |
---|
When authorizing HTTPS requests, only the roles of the current restaurant and the |
|
...
- For the created role, add an employee, set a password for him.
The name and password of this employee will be used for authorization on the server via HTTPS.
|
...
Image Added
|
Requests to the cash server should be sent to the following URL:
Code Block |
---|
https://*IP:HTTPDataPort*/rk7api/v0/xmlinterface.xml |
IP:HTTPDataPort you You need to specify your own IP:HTTPDataPort.
To access the interface, you must need to send a login and password — the name and password of an employee — of the Basic Authorization type when sending each request.
Data exchange with the cash server must should be performed in UTF-8 encoding.
Checking the XML interface through the built-in utility
To validate an XML interface over an HTTPS interface:
Visit https://ip:port/webgui/iserxmltest.htm. For example, https://127.0.0.1:13665/webgui/iservxmltest.htm
Enter the details of the created employee: username and password
Enter the text of the XML request to execute
Click the Execute button
The result should be like the picture below:
...