Powershell Invoke-RestMethod Call using Windows store certificate (Basic...
I would like to call a remote Rest web service from a Windows server hosting the remote certificate. I've exported the certificate from the remote server and added it to the Windwos store....
View ArticleAlways getting 400 - Bad request when posting data in a REST/JAX-RS
Person.java@XmlRootElementpublic class Person { private int id; private String fname; private String lname; // getter and setter}REST POST service@POST @Consumes({MediaType.APPLICATION_JSON}) public...
View ArticleHow to implement idempotency across multiple servers with non-shared...
Server A → DB1A↕Private Cache A (Redis/Memcached)Server B → DB1B↕Private Cache B (Redis/Memcached)ProblemI have a POST endpoint (e.g., domain registration) where the client sends:{ accountID,...
View ArticleHow to get complete Amazon Ads Data via v3 API - getting too few rows in...
I have successfully configured all the details to pull Amazon ads data using the v3 api, but the problem is that I am getting too few rows per report, as opposed to when I manually download the reports...
View Articleposting html form data redirect [duplicate]
I am posting modal data to a back end using HTML post and action attr. The form post fine and updates the backend as well the only thing is after pressing submit the url changes and takes me to my POST...
View ArticleOpen API vs. REST API - difference
How is Open API different from a REST API exposed on Internet? When Open API is explained it explains about an API getting exposed in LAN against exposing it to public . So what exactly is the difference?
View ArticleCannot send a content-body with this verb-type for GET Calls
I was using the extension method ToHttpRequestMessage() from System.ServiceModel.Channels.MessageExtensionMethodsSource code for MessageExtensionMethodsI created a HttpRequestMessage from Message using...
View ArticleHow to delete data from database by using React js and REST API
I am learning REST API. I am using the react app for front end and backend for Node js and express server. For API I am using REST API. I am using MongoDB for the database. I successfully display all...
View ArticleWhich API's are best for E-commerce Website?
I am aware that Rest API are not only simple to create but also capable of managing traffic effectively if they are not all accessed at once. SOAP API are very reliable but I am still unsure what the...
View ArticleHow 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 ArticleHow to fix 404 Not Found when sending GET/POST requests to express server via...
I am trying to create an Angular app that sends GET & POST requests to an express server using NodeJS.When I serve the app, GET & POST requests are meant to be sent to my local server, but I'm...
View ArticleREST response code for accessing a corrupt/invalid resource
What's the best HTTP status code to use in response to an HTTP GET for a resource that's corrupt or semantically invalid?E.g., consider a request to GET /person/1234 where data for person ID 1234...
View ArticleDjango Rest Framework: Including multiple choice fields in Serializer
I'm using the Django Rest Framework to create a custom API for my Movies model which is defined as follows:models.pyfrom django.db import modelsclass Movies(models.Model): popularity =...
View ArticleApache camel SSL connection to restful service
I am busy with a project where I have to do a GET on an exposed rest service using specific certificates. I am using the apache camel framework with the https4 component. I created a keystore and...
View Article@PageableDefault.sort is not overridden even when present in HTTP request
I use Spring Boot 3.2.12 with spring-boot-starter-web.In my REST controller I have this method:@GetMapping("/ballotsApi/ballots")public Page<BallotDto> getBallots( @PageableDefault(direction =...
View ArticleIntellij IDEA REST Client file uploading
I am trying to upload file through Intellij IDEA REST Client. I choose "File to upload (multipart/form-data)" and choose file to send. What is parameter name of this file? In my Sprint Controller i use...
View ArticleOkta Postman pagination for full users list
In an attempt to cut down on manual reporting, I need to create a loop of requests to Okta in Postman so I can get a complete listing of users. At max Okta will list 200 but we have well over that.So...
View ArticleConsume a REST API in codeigniter controller
I have create a REST API and want to consume my own created API in codeigniter controller.My created REST APIcontroller(example.php) class Example extends REST_Controller { public function...
View ArticleGetting an 'ORA-53203: security violation' when attempting to test HTTP...
I've been trying to get Oracle to call a REST API. While getting things set up and running we ran into an issue where our code generates an ORA-53203: security violation. In the process of isolating...
View ArticleJSON text not showing when switching from plumber to plumber2 api package
I have a series of API endpoints that return JSON responses with details on the success of a process launched by the API, including the messages from the R functions. When run using plumber, the...
View ArticleHow to connect to REST web service from Java application with login credentials?
I have to test the EPA's Data Exchange Web Services. Since it is difficult to create 100 accounts, buildings, energy usage distributions, etc. I want to automate the process. I searched for code...
View ArticleBusiness Central 365 Customer ledger table
I am currently working on connecting customer details with General Ledger data.From the documentation, it appears that a direct connection between the General Ledger and customer data is not supported....
View ArticleHow to have a CLI interface to interact with service on running HTTP server...
I am developing a backend server using Quarkus, and I want to be able to interact with the app and some of the implemented services via CLI. So for example have the server running on port 8080 serving...
View ArticleN/https in NetSuite SuiteScript - Header Persistence Issues
Has anyone found a reliable way to stop N/https from forwarding the original Authorization header during a 302 redirect?The Problem:> I’m calling a third-party endpoint that redirects to a signed S3...
View ArticleHow to receive JSON Messages in POST body in a JAX-RS Restful web service in...
I'm trying to develop a REST service using Apache-CXF, on top of JAX-RS. For starters, I have a method called test that receives a String message and int value. I want the clients to be able to pass...
View Article"404 Not Found" when viewing swagger api-docs when using swagger-springmvc...
I am trying to configure swagger in my spring project, but hitting Hitting "http://localhost:8080/api-docs" says "404 Not Found".Maven Dependency<dependency>...
View ArticleREST fileupload in Spring controller using multipart/form-data
Is it possible to upload file with additional data (like description etc.) with use of multipart/form-data? I'm using backbone.js in my frontend and I call REST api with it (jQuery).I don't use any...
View ArticleHow to send an array of chat messages to Google Gemini API instead of a...
How do I properly format and send multiple chat messages (history) to Gemini API so it can respond like a real chat conversation?import { GoogleGenAI } from "@google/genai";import { NextRequest,...
View ArticleEF Core database first scaffold-dbcontext generate model with different name
I am creating a REST API, and I am using EF Core 9. I have the database and the tables. I want to run database first to import the tables into the application.I ran this command:Scaffold-DbContext...
View ArticleAre there any APIs, tools, or libraries that allow autofilling job...
I'm building a job application platform using Next.js where candidate data (profile, experience, skills, CV, etc.) is already stored in my database.I also have a table containing real external job...
View Article