Calling REST Methods


#1

Hello

I have the following documentation for a REST API server I am trying to use

getUsers

GET

“/application/users”

This web service allows to get the list of users.If the authenticated user is SUPER_ADMIN all the users are returned.
If the authenticated user is ADMIN all the users belonging to his customer are returned.
otherwise only the authenticated user is returned.

Request

NAME LOCATION TYPE MANDATORY DESCRIPTION
Accept HEADER application/vnd.kerlink.iot-v1+json Media type(s) that is(are) acceptable for the response
Authorization HEADER string Authentication credentials : Bearer JWT_value
fields QUERY string List of fields to display
page QUERY string Page number
pageSize QUERY string Page size value
search QUERY Condition Search condition
sort QUERY string Sort value

Responses

STATUS LOCATION NAME VALUE DESCRIPTION
200 BODY [PaginatedDto][UserDto]
4xx, 5xx BODY [ErrorDto]

When I try a call this method instead of getting the expected JSON packet (UserDto) back instead I get an HTML string telling me to enable Javascript in my browser

I am not sure which browser to enable this in as I am making these calls through my Delphi application using the TREST components. The HTTP header mentions Microsoft Edge but I installed edge so I am not sure where to Enable Javascript

The same API URL if visited via a browser works fine which indicates that the javascript is enabled?


#2

My playlist maybe help you ^^ : youtube. com/playlist?list=PL9FegcZTeB9LRLnXtN6OMkVSZYgHdlmOr