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

HTML entities are not being decoded when using WordPress REST API for...

I am building a custom Gutenberg block that makes a request to the WordPress REST API to get some Posts. I'm using axios to make the request to the REST endpoint.When the result comes back, there is an...

View Article


Transitioning from deprecated Azure PHP SDK to Azure CLI for blob storage...

We have used the PHP SDK to download, list, and upload files to Azure Blob Storage. However, since Microsoft has deprecated the PHP SDK, our client has requested that we transition to the recommended...

View Article


Laravel: Store function doesnot save my file name to database but stores file...

I want to store file in public folder and save that's name to MySQL database, database does not create record for file_name column.When I post file then file moves to folder but database does not...

View Article

When Jersey cannot map a query parameter, it fails with 404, why so?

I'm not a Jersey guru but I read that Jersey cannot resolve Java methods based on query params, but it looks sometimes it does, here is my example.This is the server code:@GET@Path("/services")public...

View Article

Adding content-id header in multipart entity

I am trying to send a multipart request using Java HttpClient and entity mime classes. The request would be like below:POST /webservices/picture/7 HTTP/1.1Host: abc.defContent-Type: multipart/related;...

View Article


How to expose REST API HAL format pagination

How should I expose pagination for a REST API by using HAL format, should I just wrap everything in another HAL formatted object with pagination metadata or ?Is there a suggested pagination format...

View Article

How to update a submodule to a specified commit via github rest api?

There are two github repos: A & B. A will have B as its submodule.https://github.com/org_name/A.githttps://github.com/org_name/B.gitA: B@defad9 // a submodule in AHere's the case, changes made in B...

View Article

I'd like to know how I could use Dynamic Filtering (with MappingJacksonValue)...

So I have been learning REST API with Spring BootI have a User bean:@JsonFilter("UserFilter")public class User { private int id; @Size(min = 2, message = "Name should have at least 2 characters")...

View Article


Not Getting any response From the REST api Node js

As title suggests I am not getting any response any my api rather it just keep on loading. For some reason my middleware is not triggered. For example from the below code I tried to console log random...

View Article


Image may be NSFW.
Clik here to view.

Why some servers do not accept body parameters in HTTP DELETE?

I actually come into this issue, when I am testing an API, which it does not accept a HTTP DELETE with body parameters, but accept query parameters.This is fine, but I am not convinced why body...

View Article

RESTful URI trailing slash or no trailing slash

Is there an authoritative position I can cite when it comes to a trailing slash on a Restful URI? One from Roy Fielding would be great. The web has authoritative opinions both ways. The two positions...

View Article

Invalid use of BasicClientConnManager: connection still allocated

I am making a call to REST URL and trying to measure how much time it is taking to get the response back.I am using DefaultHttpClient for that to get the response back from REST URL.In my below program...

View Article

How can I add multiple query parameters with the same name but different...

I integrated a remote API with my PHP web application using Saloon. I usually set my query parameter on my Request like this:$this->query()->set(['param1' => 'val1','param2' =>...

View Article


How can I integrate my POST route in API gateway REST with my event bridge

I created a rest API with API GATEWAY, and I cannot integate my POST route 'sendMessage' with a amazon event bus(that have 2 rules). I need do a directly integration with my REST API and event...

View Article

OIC GET Method for a REST API with filters

I am trying to invoke a UDSA exposed rest API from OIC (Rest Adapter to be...

View Article


Postman: SyntaxError: Unexpected number in JSON at position 1 at JSON.parse

I am a beginner at web development and I am trying to use Postman to send a POST request to one of my application's APIs.I am using the Next.JS framework to build my website.Here is my API:import type...

View Article

Springboot 3.2.0 custom RestTemplate doesn't send Content-Length

I have a springboot 3.1.5 application that's I've tried to upgrade to Springboot 3.2.0. This application makes REST calls to another server using a custom RestTemplate. The custom RestTemplate (based...

View Article


How should I test an UPDATE method

I have a Spring Boot application and an UPDATE method for user entity:@Transactionalpublic void updateUser(@Min(1) Long userId, @Email String email, @NotBlank @Length(min = 8, max = 20) String...

View Article

Custom error messages in Spring Rest Api validation - ProblemDetails

I am trying to get a ProblemDetail response populated with the message provided on the message attribute of certain controller @Valid annotations.For example, the message attribute on the @Pattern...

View Article

Consume Azure Monitor Rest API from .Net Application

I am pretty new to Azure. Following is the task I am trying to achieve:I wanted to consume Azure Monitor Rest API from .Net application using C# code and wanted to display few metrics(any couple of...

View Article
Browsing all 3607 articles
Browse latest View live


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