Using Spring beans inside a Rest @Controller
after migrating from spring 3 to 5 i can't do this anymore in a rest controller:@Lazy@Controller@RequestMapping("/Portability4CtRestService")public class Portability4CtRestService extends...
View ArticleQA Toos to test REST API's [closed]
Please, someone to know a tool better than Postman to test API's that to be integrated with swagger (Open API 3.0)?I'm using the postman to create unit test but the tool has many problems. First, the...
View ArticleWordPress site health showing REST API error
I am making a simple local wordpress website. When i go to site health. I have this Fatal problem:Error in REST API:An error occurred when testing the REST API:REST API Endpoint:...
View ArticleHow to update array using PUT API request in Strapi
I want to update array in the product "table" via PUT request.lets say users array (product has many users)localhost:1337/api/products/2i am sending data in body{"data": {"users": [4,6,8] //i want to...
View ArticleTest Fails after Establishing Connection to Database
I have a repo for a node app that uses an object to store the data temporarily. I updated the code to connect to MongoDB and some of the tests start failing.The test is one with supertest.The code that...
View ArticleAccess HTTP Trailer in Quarkus
I'm implementing a REST-API in Quarkus and want to stream the content.I want the know when the tranpsort of the stream is finished. As the http-standard describes, http-trailer fields will be sent,...
View ArticleHow to configure JSON deserialization options in .NET minimal API project
I have a .NET minimal API project, as described here. One of the endpoints accepts JSON in the request body, and this is deserialized automatically. The code looks something like...
View ArticleHow to implement a conditional one-to-one relationship with Identity/Entity...
I am having trouble determining how to implement the following scenario in an ASP.NET Core Web API using Identity and Entity Framework:If an AppUser is given the Performer role when it is created, it...
View ArticleHow PUT state idempotency works after DELETE
is the following a correct way to see how Idempotent works for a REST PUTGiven X is a requestContext_N indicates information about the context in which the operation is execute, but do not influence...
View ArticlePost with REST API on Wordpress.com [Error 401, not allowed]
I want to post articles with rest on one of my wordpress.com websites (wordpress website hosted on the free wordpress.com platform).Endpoint, GET on:...
View ArticleDoes Google expose "Find my Device" APIs?
Google has its "Find my Device" service allowing you to find your phone, make it ring (even when silenced), remotely wipe it, etc. by entering here: https://myaccount.google.com/find-your-phoneWhat I...
View ArticleUser ID not found in UserDefaults or invalid UUID string
I am trying to display previously created events on my calendar page using a fetch events function. I have made an api that has a route to fetch events from my database. In my database, when an event...
View ArticleWhere to write queries in rest api, and how to secure it
I will make an application with Flutter. With Django, I will make a rest api to send data from mysql. I have never made an api before.In the tutorials I found, when I go to the api url, the whole...
View ArticleNon blocking REST with Spring Boot and Java 8
I need assistance.An issue with one of my endpoints timing out is causing me distress.I did some performance tweaking with SQL and other REST services I am using but it only helps a little bit.A nice...
View ArticleAny woocommerce REST API for guest account?
Woocommerce provides an API here which in order to use it, you have to provide a consumer key and consumer secret with a relevant authorization schema. What I fail to grasp is that, shouldn't be there...
View ArticleRest Spring boot converts a response with duplicate object to id of that object
I write a rest spring boot that return List<Map<String,Object>> as response.public List<Map<String,Object>> getAll(@Valid DataRequestDto dto) {...
View ArticleHow to send multiple files in postman ReSTful web service?
I am using ReSTful webservice. I am uploading multiple photos with one function (PHP).I have used $num_files = count($_FILES['myfile']['name']) to count number of files that are to be uploaded but this...
View Article(Go, Server, Cookie) I set a cookie on the server in the login handler, but...
It's my cors headers:r := chi.New Router()r.Use(cors.Handler(cors.Options{ AllowedOrigins: []string{"https://SECRET.COM", "http://SECRET.COM"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE",...
View ArticleI set a cookie on the server in the login handler, but the cookie is not set
It's my cors headers:r := chi.New Router()r.Use(cors.Handler(cors.Options{ AllowedOrigins: []string{"https://SECRET.COM", "http://SECRET.COM"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE",...
View ArticleSync discount codes in two Shopify stores
I currently manage two separate Shopify stores and I'm looking for a way to sync the discount codes between them. My goal is to ensure that whenever a discount code is created or updated in one store,...
View Article