Oauth2 google authorisation server to access spring boot api and check user...
I have a android application that connects to a rest API developed with spring boot.The user login to his google account on the phone get a jwt token (openid) from the google authorisation server....
View ArticleAn option in Karate to display Warning messages in Yellow Color
I am usinga. Karate version: 1.2.0b. HTML report: (paste into browser to view)My query as below,I would like to know if there is some command to display some message using * print or * karate.log()...
View ArticleDell powervault ME volmue usage calculation [closed]
we are currently analyzing volume usage for our Dell PowerVault storage and have some questions regarding the calculations. Based on the output from the show volumes command, we obtain both the total...
View ArticleSpark Send DataFrame as body of HTTP Post request
I have a data frame which I want to send it as the body of HTTP Post request, what's the best Sparky way to do it?How can I control a number of HTTP requests?If the number of records gets bigger is...
View ArticleHow can I make Laravel return a custom error for a JSON REST API
I'm developing some kind of RESTful API. When some error occurs, I throw an App::abort($code, $message) error. The problem is: I want him to throw a json formed array with keys "code" and "message",...
View ArticleTripAdvisor is adding -mapper to my API key
I am trying a simple request to test the TripAdvisor API :public static void main(String[] args) { try { HttpRequest request = HttpRequest .newBuilder() .uri(URI...
View ArticleWireMock on Android: empty list of received requests
I'm trying to integrate WireMock to my Android autotests based on JUnit/Espresso/KaspressoI don't need to mock request, I'd like just to verify outgoing requestsbuild.gradle:androidTestImplementation...
View ArticleREST Security Design good practice when exposing resources ID
On a REST based system what are the options to "encrypt" resources ID. For instance: /client/2would be accessible at /client/SOMEHASHKEYI am thinking :1 - Have DB tables that keeps track of a resource...
View Articleapi platform - Unable to generate an IRI for the item
I'm starting with API Platform and I'm using the example entity "Foo":namespace AppBundle\Entity;use ApiPlatform\Core\Annotation\ApiResource;use Doctrine\ORM\Mapping as ORM;/** * Foo * *...
View ArticleNo 'Access-Control-Allow-Origin' header is present on the requested...
Edit answer to this problem is addressed hereCORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource - AngularEven though I have added @CrossOrginI still get CORS...
View ArticleDjango REST Framework Login
I am not really understanding why I am unable to login as a user that I created using Django REST Framework. I am using the User Model from django.contrib.auth.models import User.I am spinning up the...
View ArticleRandom 401 Unauthorized when calling REST API from bash
I have a strange issue with REST calls. On the server side I have Windwos machine with IISI have a list of IDs (approximately 8000 - I tried also with less records) for each of this IDs I need to do 3...
View ArticleTesting request timeout in C# ASP.NET Core 8 Web API locally
I'm attempting to test request timeout functionality in a C# ASP.NET Core 8 Web API on my local environment.Here's my setup: in Program.cs, I've configured middleware using AddRequestTimeouts and...
View ArticleHow can I update keycloak's user details programmatically (java), without...
I want to update the user detail. e.g. I created user(k1) in "demo" realm from keycloak admin console. I have one java client and I want to update the user(k1) details like. Change Email address of...
View ArticleHttp 500 when getting MS Fabric workspace access details using their REST API
When using a GET to https://api.fabric.microsoft.com/v1/admin/workspaces/{workspaceId}/users with a valid and existing {workspaceId}, I'm getting a 500 http error :{"requestId":...
View Articlecxf rest spring service giving error
I am trying to expose rest service using cxf rest. i have cxf 2.7.5 and spring 3.1.3.RELEASE when trying to use the url http://localhost:8080/web/services/rest/getreq its giving error.Status Code: 500...
View ArticlePOST request works fine in devtools, but not on the website [closed]
My issue is that for some reason, the addEventListener for my POST request doesn't work unless I'm in devtools. The POST request is connected to a button on the page via this addEventListener in a...
View Articlehow to avoid spaces while using payload
I am trying to use this payload to pass it into python post request. However while doing that, it sends the payload with spaces between fields. This is causing http 400. How to avoid this in...
View ArticleHow to refresh a token when token expires in a go backend application
In my go backend application I generated a token when my app is initialised.And I want to use this token as a global variable for further authentications.type Token struct { Name string Value string...
View Articlehow to efficiently setup file structure in api versioning?
stack: node express restful apiGoal:two version api, v1 and v2, I wish these two versions api running on the same server at the same time.project layers:router/controller/service/model...
View Article