Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Can not connect to h2-database in spring boot

I am writing a REST API in spring boot and I can not connect to h2 in spring boot. This error is showing when I test the connection. Please help. Thank you in advance.Here is my application.properties...

View Article


Upload a temporary file to DataPower Gateway through REST API

I am trying to write an Ansible playbook to upload or update a file on a DataPower Gateway container through the REST API (PUT /mgmt/filestore/domain/filepath). I have managed to upload a persistent...

View Article


REST API filter operator best practice

I am building a REST API that uses a filter parameter to control search results. E.g., one could search for a user by calling:GET /users/?filter=name%3DfooNow, my API should allow many different filter...

View Article

Correct the classpath of your app so that it contains compat. vers. of the...

I find it difficult to fix the problem. Would you please helping me out?Console output:Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug'...

View Article

Extracting csv like data from an json object via API POST call

Unable to dig deeper in the json object to extract the csv like data that is stored in there as the payload of the api call.When reading the data from the output of the call it shows as;{'d': {'error':...

View Article


M2M Client Credential Flow between NetSuite and Synapse

I am looking to create a flow somewhere in the Azure stack to allow me to get M2M authentication between Azure Synapse and NetSuite. The goal is to be able to drop the use of the ODBC connector and...

View Article

Make REST API call in Swift

I'm trying to use Swift to make a GET call to a REST API, and have tried to follow numerous tutorials, but can't figure it out. Either because I cannot figure out how to translate all the Obj-C to...

View Article

How to use import in JavaScript while using Spring Boot

I ve been looking for a way to use import Chart from 'chart.js/auto' in my webpage. Im currently using Spring Boot, with Thymeleaf.Problem is, none of the things I tried worked. I have a node_modules...

View Article


How do I write unit tests for a REST API built in Slim Framework?

I have an API built in Slim like this: $app->group('/'.$endpoint, function () use ($app, $endpoint) { $handler = Api\Rest\Handlers\Factory::load($endpoint); if (is_null($handler)) { throw new...

View Article


How to safely store API Keys in a database for a REST API?

I'm building a REST API that uses API keys for authentication. I want to ensure that these API keys are stored securely in my database. If I were storing user passwords, I would use Argon2id for...

View Article

Is It OK To Use ONLY (CSRF) Tokens For Authentication

Recently, I've learned that cookies are sent automatically with every request. And this behaviour makes some websites vulnerable to CSRF. From what I've learned, CSRF can be prevented by using CSRF...

View Article

API Connectivity using "PKCS12" certificate file

I am getting below Errorjavax.net.ssl.SSLHandshakeException: PKIX path building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested...

View Article

How to GET Employee Absences data from HCM Fusion by sending two dates in...

I would like to GET employee last 2 months and future 2 months absences data.REST API:...

View Article


Image may be NSFW.
Clik here to view.

REST API Call in VS Project Fails Authentication in Gitlab Job

SummaryVisual Studio C# Project makes a call to a REST API in one of its SpecFlow tests.Running VS locally, the call succeeds.Running in a Gitlab CI job, the call fails with an HTTP 403...

View Article

How to pass authorization token in header in Rest assured?

Trying to automate api testing using Rest assured@Testpublic void Login() { Response resp = given(). body("{\"phone_number\":\"2222222222\",\"\r\n"+"+ \" \"country_code\": \"+91\",\"\r\n"+"+ \"...

View Article


How to execute each scenario outlines in parallel, but the outline examples...

Considering I have the parallel tag set to true at the feature file level, Can I have the scenario outline examples executed in sequential...

View Article

TestRestTemplate vs WebTestClient vs RestAssured : What is the best approach...

Which of the 3 APIs: TestRestTemplate, WebTestClient, RestAssured is the most efficient for integration testing of Spring Boot Rest API (non-reactive) with respect to the following:Ensures...

View Article


How can you click an href link but block the linked page from displaying

It was hard to encapsulate my question in the title.I've rewritten a personal web page that made extensive use of javascript. I'm simplifying matters (or so I hope).I use a home automation server that...

View Article

How do I add custom error messages in the Django Rest Framework API Key library?

I have implemented the Django Rest Framework API Key library for Authentication in my project and it is working well, however I noticed that"403 Forbidden"with{ "detail": "Authentication credentials...

View Article

Custom get method with .net core

I want to create a custom get method such as: https://localhost:4200/api/get/Echeanciers?idengin=2I want to get all "Echeancier" where id engin equals to 2. I don't know if its possible.I can explain...

View Article
Browsing all 3607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>