Hypermedia API for native clients (Android, iOS)?
Do you think it is a good idea to expose hypermedia api (HATEOAS) for native clients (Android, iOS)? What are the difficulties when the clients try to consume such an API?I assume that the UI will be...
View ArticleIs there a way to get Only songs with "downloadable" = true via the Search...
Im trying to obtain a list of songs that have the download_url and downloadable = true.I am also trying to obtain the top 5 songs of a genres.The Search endpoint has a query parameter but the api...
View ArticleSpring Boot Custom Authentication Provider with Java Configuration not working
I am trying to setup a REST based web application, where the frontend is using Reactjs and the backend is using Spring Boot. I am also trying to setup a custom authentication provider, and this is...
View ArticleHow to convert Json object to BLOB in java
I need to store HTTP REST API (POST, GET, PATCH, etc.) requests and responses into a database entry (Column as BLOB), so that we can audit the requests and responses later.As part of the incoming HTTP...
View ArticleHow to optimize performance and reduce load while designing a RESTful API for...
I'm currently working on a frontend application where I need to display information about authors. Each author can have multiple child objects (e.g., books), and I also need to display information...
View Articlehow to update dynamodb with pynamodb ORM?
I'm creating a user table in dynamo db and want to utilize pynamodb ORM, sample class below.pynamodb classfrom pynamodb.models import Modelfrom pynamodb.attributes import UnicodeAttributeclass...
View ArticleGetting back to programming, starting with a TypeScript project [closed]
I have stopped writing code for a year plus now. I used to write React code.There is a project which brings me back to coding, but the project is in TypeScript and I used to do JavaScript.I also have...
View ArticleHow to Define URI/Package/Controller Based WebFluxConfiguration in a Spring...
I have a Spring app in which I have different rest controllers.I want to have a different WebFluxConfigurations for the different controllers.For example, for the 'configureHttpMessageCodecs' I want to...
View ArticleNodeJs : How to send very large data from server to client
I am using Express Framework. I am trying to send very large data from server. The Client receives 200 OK status but no data. Also it gives error ERR_CONTENT_LENGTH_MISMATCH even though I am sending...
View ArticleSave ZIP file from REST web service using Postman tool
I have created a web service to send a ZIP file as output. I use POST method in the request (send file as input).How do I download a file in the Postman tool?I get the response like this (content of...
View ArticleHow to call OData service using a destination?
New to JavaScript and SAPUI5; struggling to find syntax explanation.Need to call an OData service in on-premise systems. The SAP project template already put seemingly correct dataSources section in...
View ArticleWhy Chrome Dev tools (network tab) doesn't show the response for a request?...
I have been unable to deduce why Chrome(97.x.x.x) is unable to load the response for a successful POST XHR. It displays the following message in the response section:Failed to load response data: No...
View ArticleIs it okay to use an HTTP DELETE to deactivate a record?
I'm building a RESTful API command to deactivate a user record. Is it kosher to use DELETE to do this or should this be a PUT, since the record is being updated to "deactivated" status? Or is it just a...
View ArticleHow get a list with all items beginning with request param from optional stream
I want write a method where when you post a parameter fooName it returns a list with all values that start with the given parameter. I wrote such a function but unfortunately it returns a list with...
View ArticleREST API with large payload
We have a business partner who is insisting on sending large payload of sizes over 100MB on our REST API call. They will call this API of ours every 5 minutes. Although we are trying to explain to them...
View ArticleRestAPI should accept date and DateTime
My REST API has two params, 'from' and 'to' - which should accept either Date or DateTime. sometimes they might be interested to pass only Date, in that case we consider Time is added as begining of...
View ArticleMay sec-fetch-dest header be used to distinguish REST requests from other...
The actual problem - at server side we need to distinguish REST requests from other browser HTTP requests like image request, page request and etc. By saying "REST request" I mean a request made by JS...
View ArticleExamples of HTTP API Rate Limiting HTTP Response headers
One of the Additional HTTP Status Codes (RFC6585) is429 Too Many RequestsWhere can I find examples of HTTP / REST API Rate-Limiting HTTP response headers useful with this HTTP response status?
View ArticleJax-rs apache-cxf:No resource methods have been found for resource class
I have following cxf configuration file<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"...
View ArticleKeycloak secured service returns HTTP status 302 when tried to be accessed...
I have a very simple REST service secured with Keycloak. I get a keycloak token and try to access this REST service but get an HTTP 302 status. Any ideas how to solve this problem?
View Article