Versions Compared

Key

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

...

Code Block
curl "http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/timeseries/topology/node"

Example text response




FEWS PI REST Web Service API - Web Operator Client endpoints

The following endpoints are meant to be used by the Web Operator client.

GET /weboc/configuration (2022.02)

GET the web OC Configuration

Response

    • JSON response with the Web OC configuration.

Example request

Code Block
curl "http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/weboc/configuration"

Example text response

Code Block
languagetext
{
  "components": [
    {
      "type": "string",
      "title": "string"
    }
  ],
  "general": {
    "title": "string",
    "icons": {
      "logo": "string",
      "favicon": "string"
    }
  }
}


GET /weboc/resources (2022.02)

Get get a resource from the IconFiles folder

Request parameters

  • resourceId (string): name of the resource in the IconFiles.

Response

    • binary with the content of the IconFile

Example request

Code Block
curl "http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/weboc/resources?resourceId=logo.png"

Example text response

GET /weboc/resources/public (2022.02)

Get get a resource from the IconFiles folder that is publicly available. No authentication is required.

Request parameters

  • resourceId (string): One of: "weboc_login_logo.png","weboc_login_background.png"

Response

    • binary with the content of the IconFiles

Example request

Code Block
curl "http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/weboc/resources/public?resourceId=weboc_login_logo.png"

Example text response