HTTP POST with URL query parameters -- good idea or not?
I'm designing an API to go over HTTP and I am wondering if using the HTTP POST command, but with URL query parameters only and no request body, is a good way to go.Considerations:"Good Web design"...
View ArticleHow to send both object and parameters in Postman?
I want to send an object of arraylist (in Java) and other parameters as passed by the user to Postman.Here is my code for controller: @PostMapping(path = "/listEmpPaidSalariesPaged", produces =...
View ArticleSpring RestTemplate behaves differently to Postman
In Postman I'm sending the following request:I'm getting the expected response, with the limit being taken into account.Here's my Spring RestTemplate implementation:String url =...
View ArticleError 415 Unsupported Media Type: POST not reaching REST if JSON, but it does...
I am actually new to REST WS but really I don't get this 415 Unsupported Media Type. I am testing my REST with Poster on Firefox and the GET works fine for me, also the POST (when it's a...
View ArticleIssue with Quarkus exception handling extension not capturing exceptions
I’m working on several Quarkus APIs that communicate via REST within a Kubernetes cluster. I’ve implemented an exception handling mechanism that captures exceptions, formats them to match a standard,...
View ArticleFormat of java.sql.Timestamp in JSON has changed
When upgrading a rest service from JEE7 to jakarta.jakartaee-api (v 10.0.0) there is an unwanted change in format of java.sql.Timestamp timestamps. The timestamps used to be like this{"timestamp":...
View ArticleHow use arrayUnion using firestore rest api?
I can't find a way to achieve the request even following the Firestore documentation.I tried this request:PATH (PATCH METHOD):...
View ArticleNot able to override the register api provided by Strapi, currently using...
I need to make the username field in the users collection as non unique, despite changing it manually on the UI side, it still doesn't work.Tried to override the auth.js file from the node modules as...
View ArticleHow can I call with Postman a RESTful API deployed with Gradio?
I'm following the basic Gradio interface from the Gradio documentation:import gradio as grdef greet(name): return "Hello " + name +"!"demo = gr.Interface(fn=greet, inputs="text",...
View ArticleHow to post the data into multiple tables using Talend RestFul Services
I have 3 tables called PATIENT, PHONE and PATIENT_PHONE.The PATIENT table contains the columns: id, firstname, lastname, email and dob.The PHONE table contains the columns: id, type and number.The...
View ArticleRecreate http post request with nodejs from Watchguard firebox login
I have a Watchguard Firebox T40-W. It has a web login where you can access all kinds of informations.My goal is to duplicate that same web request with nodejs to be able to get those informations via...
View ArticleAPI platform relations method GET
I'm creating an API with API Platform to display all my dev projects in a JSON file.I already have my entities and relations done, it works perfectly.But the problem is when I try to GET all the...
View ArticleCORS - Access-Control-Allow-Origin issue
I have an AngularJS web application with a RESTful Jersey Api as Backend.I'm making a call to this APIfunction Create(user) { return $http.post('http://localhost:8080/NobelGrid/api/users/create/',...
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 ArticleAzure Communications Service api - add new from address
I am testing the REST API and my post request is working (an email is successfully sent). However, I want to change the from address to something other than the default. I believe there is no way to do...
View ArticleNestjs CrudContoller Patch method not updates record
Updating record with nestjs/crud CrudController not updates record
View ArticleAuthenticated Webfocus user needs to make a REST Api call from browser. How...
I have a scenario where users log into Webfocus and get authenticated via IDP. One of the Webfocus pages calls a REST Api via JavaScript so the request is made directly from user's browser. The REST...
View ArticleRepresenting a Kibana query in a REST, curl form
I have a Kibana server in a classic ELK configuration, querying an Elasticsearch instance. I use the Kibana console to execute sophisticated queries on elasticsearch. I would like to use some of these...
View ArticleHTTP GET with request body
I'm developing a new RESTful webservice for our application.When doing a GET on certain entities, clients can request the contents of the entity.If they want to add some parameters (for example sorting...
View ArticlegetByEmail() function return error for existing email: User cannot be found
We are using the following end point of the SharePoint Online API go get the ID of the user in SharePoint:https://my_company.sharepoint.com/_api/web/SiteUsers/getByEmail('xxx@my_company.com')/IdIn most...
View Article