JWT-WS-Bridge (1.0.x)

A service that allows access to our live websocket via a valid JWT bearer token

Download OpenAPI description
Languages
Servers
Mock server

https://docs.cognitivesystems.com/_mock/assets/specs/jwt-js-bridge/v1-x/

External

Operations

Internal

Operations

Auth

Request

This is an internal endpoint that is used by the Nginx server to authenticate requests to the service. There is no need for a user to call this outside of development.

This endpoint consumes a JWT bearer token and returns a 200 and custom header if the JWT bearer token is valid.

Headers
Authorizationstringrequired

JWT bearer token.

curl -i -X GET \
  https://docs.cognitivesystems.com/_mock/assets/specs/jwt-js-bridge/v1-x/auth \
  -H 'Authorization: string'

Responses

Successfully logged in.

Headers
X-Network-Idstring

network_id included in the JWT bearer token.

healthz

Request

This endpoint is internal and is used to confirm that Nginx server has been started and is serving requests.

curl -i -X GET \
  https://docs.cognitivesystems.com/_mock/assets/specs/jwt-js-bridge/v1-x/healthz

Responses

Bodyapplication/json
servicestring
Example: "jwt-ws-bridge"
Response
application/json
{ "service": "jwt-ws-bridge" }