You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joerivrij edited this page Dec 3, 2019
·
1 revision
Proxy api
General
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.
Tokens
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.
Open endpoints
/v1/proxy/movies/ GET
/v1/proxy/tokens/ POST
/v1/proxy/users/ POST
User endpoints
/v1/proxy/movies/searches GET
/v1/proxy/movies/{id} GET
/v1/proxy/tokens/ GET
/v1/proxy/users/ GET
Admin endpoints
/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.