"Content type 'application/json;charset=UTF-8' not supported" in Spring Rest...
When I do a POST request on localhost:8080/api/users to create a new user I get the following error :{"timestamp": "2018-05-28T09:44:55.704+0000","status": 415,"error": "Unsupported Media...
View ArticleGrapevine post request issue
I am using the Grapevine server in a console application.Calls via get work perfectly.Now I want to pass a serialized order object to an endpoint via post request, but I get the following error...
View ArticleStrapi CMS PUT for repeatable items or media via REST API
How do I update each asset or all assets via PUT rest API? If this is my document:{"data": {"id": 5,"documentId": "bui11070zyexg20k1xg9fdxx","name": "Test Document","createdAt":...
View ArticleHow to set the Content-Type header for an HttpClient request?
I'm trying to set the Content-Type header of an HttpClient object as required by an API I am calling.I tried setting the Content-Type like below:using (var httpClient = new HttpClient()){...
View ArticleAugmenting the calendar widget in ZK Studio 5.0
In an acquired RESTful Spring Boot Web application, there are some restrictions I currently cannot change. The code partly uses Java 1.6, the rest is Java 17. And the ZK Studio has the version 5.0 and...
View ArticleJava Spring Force developers to set permission annotation at http endpoints
I want to protect all http endpoints with spring security annotations. Is there a way to punish developers that forget setting annotations on methods. Spring configuration? Or do I have to write my own...
View ArticleCannot change the default indexType from AutoIndex to HNSW when creating an...
I have successfully created a Milvus collection and inserted data directly without any noticeable challenges. Now, I want to create a Milvus collection using the RESTful API as detailed in the...
View ArticleCalling a Rest API with Bearer token
I'm trying to consume a REST api with bearer token authentication. I'm getting this error:Media type is unsupportedCode:using System;using RestSharp;using System.Configuration;using...
View ArticleDisable default routes of WP REST API
I need to disable default routes of WP REST API and add custom routes.I found this question which helps me to find following answer.remove_action('rest_api_init', 'create_initial_rest_routes',...
View ArticleHow to create order in eBay sandbox environment [closed]
I don't know how to create order in eBay sandbox environment I have to call get Orders api and I am able to successfully call the api but in response I'm getting order list empty. It means I donve...
View ArticleREST API: How to prevent races when doing read - update - write cycle on...
Let's assume a relational db-backed API. I understand the usage of optimistic concurrency control (eg by using a version field) to prevent lost updates from clients (where the r/u/w cycle is performed...
View ArticleHow to create Encounters using EPIC FHIR API?
I'm working on integrating Epic FHIR APIs into my custom EHR application. One of my requirements is to create new Encounters (e.g., linking them to appointments or other workflows). However, after...
View Articlewhat's the difference between a collection and a store in REST?
I'm trying to wrap my head around the difference between a "collection" and a "store" in REST. From what I've read so far, a collection is: "a server-managed directory of resources"and a store is...
View ArticleSpotifyAPI Get Recommendations Endpoint has been Deprecated
I'm building an application that is utilizing SpotifyAPI. One of the features I'm trying to implement is a search bar where users can search for their favourite tracks, but before even typing anything,...
View ArticleIs it possible to autowire local server port outside of a test class in...
I was wishing to wrap my controller calls for rest api testing for handy usage and wroteclass BaseControllerWrapper { @LocalServerPort int port; ...}@Componentclass SpecificControllerWrapper extends...
View Articlefreeradius and rml-rest module Configuration errors
I want to use a REST-api to handle authentication (or just fetch users) for my freeradius authentication server.When I try to start the server I get an error :/etc/freeradius/mods-enabled/rest[17]: Too...
View ArticleUpload csv using Invoke-RestMethod
I am trying to upload a local csv file to the import endpoint of 4me/xurrent using power shell. My latest version looks as follows and still receives an error.$importUrl =...
View ArticleTrying to call Azure Rest API with powershell Exception calling...
Trying to call an API via powershell whilst logged into Azure interactively using powershell. I hve written the code below, but I am getting the error after runningConnectAzAccount...
View ArticleCaching user data (db entity) in RESTful services
Before asking my question, I would like to note that I have made some research for similar posts and I have not been able to find a clear answer so I decided to write my question in here.I am trying to...
View ArticleDelphi RestClient on Mac and Windows
I have server (WebBroker) and client (RestClient) applications. The server is executed on Windows, and one of its methods looks like this:procedure TWM.KlijentiFirmeGet(Request: TWebRequest; Response:...
View Article