Versions Compared

Key

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

...

For cross-domain requests, custom headers have to be added using the following parameter in flashphoner.properties file:

Code Block
themeRDark
rest_access_control_headers=Access-Control-Allow-Origin: <origin>;Access-Control-Allow-Credentials: true;Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS;Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization

...

On the screenshot below you can see how to get list of streams by REST API using REST method /stream/find_all


OpenAPI specification

Since build 5.2.1343 REST API can be displayed and tested according to OpenAPI 3 specification. OpenAPI specification file can be downloaded by URL https://demo.flashphoner.com:8444/rest-api/openapi_spec in YAML format, UI is vailable by URL https://demo.flashphoner.com:8444/rest-api-spec/, where demo.flashphoner.com  is WCS server address

Image Added

Every REST API query can be explored and tested using Swagger UI

Image Added

Required fields are marked by * character on Schema tab.

Image Added