Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And check if the field “global” is “UP”

Administration
Anchor
47912127-c510-4b78-8fc4-66cdfc1943a7
47912127-c510-4b78-8fc4-66cdfc1943a7

Below will be described the methods used to manage the configurations.

...

Namirial reccomends to change this key.

The next command require to use a curl, if you are not a friendly with this tool or prefer to use a gui interface, you can use a postman.

The collection can be obtained from this link

How change the api-key (password)?

...

How can enable opeapi and swagger?

By default, for security reason openapi and swagger are disabled. if you need to If you need to enable. you should add this field to docker run:

...

Code Block
docker run -d --name NAME_OF_ISTANCE -v VOLUME_NAME:/opt/sws/custom -e SPRINGDOC_API_DOCS_ENABLED=true -p 8080:8080 namirial/sws:latest

Or you can use a dedicated endpoint to enable it:

Description

Allows to enable swagger ui

HttpMethod

PUT

Path

swagger

Header

NAME: “x-api-key”

VALUE: “API_KEY”

Response

Return the status code 200

Below you can find an example using curl:

Code Block
curl -i -X PUT http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/server-admin/swagger \
-H 'x-api-key: API_KEY'

Once complete the request, you must restart the service (in case on SWS standalone) or restart the docker image

At this link will be published the OPENAPI endpoint:

Code Block
 http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/openapi

While the swagger endpoint will be published at this endpoint:

Code Block
http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/openapi-ui.html

How can disable opeapi and swagger?

If you need to enable. you should add this field to docker run:

Code Block
-e SPRINGDOC_API_DOCS_ENABLED=true

The run command, will be:

Code Block
docker run -d --name NAME_OF_ISTANCE -v VOLUME_NAME:/opt/sws/custom -e SPRINGDOC_API_DOCS_ENABLED=true -p 8080:8080 namirial/sws:latest

Or you can use a dedicated endpoint to enable it:

Description

Allows to enable swagger ui

HttpMethod

PUT

Path

swagger

Header

NAME: “x-api-key”

VALUE: “API_KEY”

Response

Return the status code 200

Below you can find an example using curl:

Code Block
curl -i -X PUT http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/server-admin/swagger \
-H 'x-api-key: API_KEY'

Once complete the request, you must restart the service (in case on SWS standalone) or restart the docker image

At this link will be published the OPENAPI endpoint:

...