In a webapp implemented as a Jetty container, we have a custom javax.ws.rs.ext.MessageBodyWriter<T> annotated with We also have a resource wh ...
In a webapp implemented as a Jetty container, we have a custom javax.ws.rs.ext.MessageBodyWriter<T> annotated with We also have a resource wh ...
I'm trying to create a POST route where the media type would be set to "image/*" but when my route requires an argument, it's media type become "appli ...
How do I return an excel file (version: Office365) using FastAPI? The documentation seems pretty straightforward. But, I don't know what media_type to ...
I am developing a Rest-API application using Java/Quarkus. My POST API accepts XML/JSON contents. I would like to identify the type of MediaType of th ...
sorry to bother you all but I have a simple issue which is obsessing me, I'm trying to use MediaTypeUtils.getMediaTypeForFileName but I can't manage t ...
I'd like to add a new MediaType to the MvcOptions input formatter in .Net 5 When I do the following services.AddControllers(); services.Configure&l ...
. Answers to this question are eligible for a +50 reputation bounty. us ...
I am trying to return an image as shown here https://www.baeldung.com/spring-mvc-image-media-data All methods that are shown there are working proper ...
I have a REST API My request contains the following lines And I received a 400 Bad Request And when I removed the characters "°" and "í" from ...
Per iana.org, all media types except 17 of them have a template and those without a template are gif, jpeg, mpeg, QCELP, ief, external-body, partial, ...
I'm trying to take a Json object from front-end. This represent a course. The course have a field logo, the image of the course. In my Controller I ha ...
Is it possible to write a JSON schema that includes base64 encoded content where the media type could be anything? I presently have the following: ...
I have a Spring Boot application with an already working endpoint that produces an xlsx file. Now, I want to implement content negotation on this endp ...
I have an Spring Boot application with a method in a RestController to download a csv file and a test to check the case were an exception occurs. When ...
I have an ASP.NET Core Web API (TargetFramework is net5.0) where I accept 2 media types: application/json application/vnd.my.customtype+json ...
Using Spring MVC I have a controller with an endpoint returning a SseEmitter. In the case of the above code the accept() method is expected to thro ...
I need to serve multiple file types using same endpoint ( zip,pdf,xml). I needed to add error handling to those endpoints so in case of error they sh ...
I have an issue rendering an image to a Browser when retrieving that image from a REST endpoint. I perform a GET to the endpoint and am streamed a bin ...
On a Java Android Studio project, I'm uploading a binary file (through a PUT web service) using Retrofit (latest 2.9 version). This code makes the ...
I wanted to add to my WebAPI (ASP .NET Core) the possibility to work also with XML format. I made configuration according to documentation on MSDN (ht ...