Method not supported execption just with one controller Spring
Good morning every one, I'm having a hard time with this issue. I could work around but I want to understand why this is happening. So far I'm working with Spring, Spring Security, Data Rest and Data...
View ArticleIs there any way I can fix this serializer validation error?
I'm trying to create an Order in Django with an optional promo_code, but I'm getting a validation error:{"promo_code": {"code": ["This field may not be blank." ] }}Here are my models:class...
View ArticleEmbedd Swagger UI into Blazor Server Side App
I would like to embed the swagger UI in a page on my blazor app. I am having a hard time finding examples of how to do this with razor pages. Does anyone have any examples doing this? I am usually more...
View ArticleHow to get the API page as a pagination in wordpress frontend
I have connected API that have page, posts_per_page parameter in result body it also have "total": 500, "total_pages": 5, "current_page": 1The API have default posts_per_page as 100API page setting:...
View ArticleRestSharp: Add File not Content Transmitted
I want to upload a File using Post. When using Postman everything works fine and the file is uploaded as expected, but when I try the same with RestSharp my File is always empty.Am I doing something...
View Article400 vs 422 response to POST of data
I'm trying to figure out what the correct status code to return on different scenarios with a "REST-like" API that I'm working on. Let's say I have an end point that allows POST'ing purchases in JSON...
View ArticleUnirest doesn't return content-encoding gzip header
I am using Unirest in java app for API call.The API server is a spring-boot app with the compression...
View ArticleGithub REST API to know all my activities filtered by date
I would like to knowthe list of PRs i reviewedList of PRs i createdin the given date rangeI was able to get some informationi would create personal token as explained in...
View ArticleIs it possible to download invoices in GoDaddy using the REST API?
I've been trying to find out if there are some end-points that allow you to view purchases made via GoDaddy, so that you can download your invoices. From what I can see, they have a REST API, but I...
View ArticleAdd header to http request
My first post here. I'm using droidscript and I have to include an header that contains a specific user and a password in order to retrieve a token. I'm having trouble because I don't know where to...
View ArticleNuxt3 config to fetch the data from rest api and generate static page based...
I'm trying to generate a static page with nuxt 3 but no luck. I fetch the data from wordpress rest api (https://172.27.0.4/wp-json/...), nuxt works on http://0.0.0.0:3000, so I added this to...
View ArticleDjango REST & react-admin: Content-Range header missing
Using react-admin's ra-data-simple-rest DataProvider I would like to make a request to a django REST api. In Django I built the following custom pagination class which is supposed to expose the...
View ArticleRestful API call using IOS with authentication
I am working on an application that uses restful API call using Prestashop API. I am new at iOS I coded the same method in Android as: InputStream is = null;try { DefaultHttpClient client = new...
View Article@RestClientTest with RestClient (NOT RestTemplate)
I understand the @TestRestClient helps us easily test classes that use RestTemplate to call REST services. I have several classes which use Spring's RestClient (NOT RestTemplate, NOT WebClient) to make...
View ArticleDocument or RPC based web services
My gut feel is that document based web services are preferred in practice - is this other peoples experience? Are they easier to support? (I noted that SharePoint uses Any for the "document type" in...
View ArticleHow to add a test run to ALM using REST API
I searched high and low trying to figure out how to create a test run using the REST API for ALM. If anyone has found a better way then I would love to see it! Just figured this out last night.I used...
View ArticleOrdering firestore documents using a nested field
trying out firestore rest, the documentation states that to order items ?orderBy=name%20desc this orders using the document name in descending order. The documents I need to order have the following...
View ArticleSSL Certificate - Calling an external REST API from Mulesoft
If a REST API is accessible on the internet and is SSL secured do I need to add the certificate to the mule app?As an experiment I tried calling https://jsonplaceholder.typicode.com/todos/1 from...
View ArticleHow to globally configure ASP.NET Core 6+ API routes to be formatted as...
I have an ASP.NET Core 6 Web API project. Some of the endpoints are related to controllers whose names consist of multiple words and thus are in PascalCase format as per the convention in .NET. Suppose...
View ArticleHow to serialize a single json field from two reverse foreign key...
I'd like to get a single json field in the API response which lists identifiers for related objects based on two reverse foreign key relationships. Simple example what I mean by that is presented...
View Article