-
Notifications
You must be signed in to change notification settings - Fork 8
3. Proxyapi
This api is used to make calls across the firewall to the backend apis.
It is exposed on port: 8080 Swagger can be found at: localhost:8080/swagger
Please refer to swagger for further routing details.
The proxy api uses Bearer tokens (see https://jwt.io/ for more info). There are three kinds of endpoints, endpoints for everyone, for users and for admins. They either require a token appropriate to that role or no token.
/v1/proxy/movies/ GET
/v1/proxy/tokens/ POST
/v1/proxy/users/ POST
/v1/proxy/movies/searches GET
/v1/proxy/movies/{id} GET
/v1/proxy/tokens/ GET
/v1/proxy/users/ GET
/v1/proxy/movies/ POST
/v1/proxy/movies/admin GET
/v1/proxy/tokens/admin GET
/v1/proxy/users/admins POST
/v1/proxy/users/{id} DELETE
/v1/proxy/users/{id} PUT
You can get a token by calling: /v1/proxy/tokens/ POST with valid credentials (either user or admin).
You need to include the token as Bearer for each call you make.