Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live
↧

Issue with HTTP POST in Angular: Getting Blank Page as Response

I am experiencing an issue with making an HTTP POST request to my backend using Angular. I am trying to create a submit form to send data, but whenever I use the httpClient in version 18, I always...

View Article


How to disable anonymous execution of a postgrest query

Postgrest is rest API for postgreeSQL database.I am using postgrest v9.0.0with the following config:db-uri = "postgres://remote_worker:1HyiYai@localhost:5432/myDb"db-schema = "public"db-anon-role =...

View Article


Springboot MongoRepository findAll() method returns an empty list, But other...

findAll() method of mongoRepository returns an empty list. what is wrong with the below code?API used for counting the number of documents in the collection works fine and because of that, findAll()...

View Article

Dell powervault ME volume usage calculation [closed]

We are currently analyzing volume usage for our Dell PowerVault storage and have some questions regarding the calculations. Based on the output from the show volumes command, we obtain both the total...

View Article

How can I call a REST API in Php

Our client provided me with a REST API that requires a PHP call. However, the documentation accompanying the API is quite scanty, leaving me unsure about how to proceed with calling the service.I...

View Article


Spring Boot POST request with abstract list property

I have a spring boot application that has a Game model which has a list of abstract Die objects. There's multiple dice of different colors that extend this Die class and get created by a factory.This...

View Article

Kafka HTTP Source connector - SunCertPathBuilderException: unable to find...

I am trying to use https://github.com/llofberg/kafka-connect-rest connector to retrieve data from api.I successfully built source code and installed plugin into Kafka Connect. But I cannot connect to...

View Article

How to control exception while developing RESTful API with Java?

I'm developing RESTful API for our clients.I'm about to show error information if some error occurs.The error information protocol look like below.{ "status": "failure","error": {"message": "", "type":...

View Article


Implementing DDD relation/child/aggregate with a HTTP API as persistence

We are doing a REST web API in C#. We have some form of clean/onion architecture with application, domain and infrastructure layers. I would like to inject some DDD ideas into the project so that the...

View Article


Detect client connection drop using Jersey/Java

I have created Restful Web Services using Jersey over Java. My client is an iOS app which sends user data after every minute. What would be the best way to detect that client has stopped sending the...

View Article

Java Backend and iOS clients - RESTful

I am trying to develop a clients-server distributed system. Clients will be running in iOS while I would like to use java for the backend part.I would like to write some API, since I am in a mobile...

View Article

R Shiny REST API communication

I have a shiny app that takes a JSON input file, runs it through a classifier and returns a classified JSON object.I want the app to be able to communicate with an API. I want the API to post a file to...

View Article

Javascript-function only runs if called before another function

I am getting to my limits here. I don't get the way asynchronicity behaves in my code. I am using a rest API from a js. Within my code there are to functions that are somewhat similar. They read keys...

View Article


Correct use of files.getUploadURLExternal in Curl command line

I was using:curl -v -F file=@/tmp/x.png -F "initial_comment" -F channels='xyz' -H "Authorization: Bearer oauth" https://slack.com/api/files.uploadWorks still very well, but file.upload will be...

View Article

Return List in REST Web Service

How can return List of Strings in REST Web Services I am using CXF 2.7.8 I have one method as : @GET@Path("/items")@Produces(MediaType.APPLICATION_JSON)public List<String> getItems() {...

View Article


how to connect to REST web service from Java application

I have to test the EPA's Data Exchange Web Services. Since it is difficult to create 100 accounts, buildings, energy usage distributions, etc. I want to automate the process. I searched for code...

View Article

Migrating from monolithic file.upload to sequential/asynchronous to...

I scratched my head for hours trying to figure out the way to migrate after receiving the email from Slack's team of the future deprecation of file.upload. The message is the same as...

View Article


asp.net core compression different behavior between win11 and docker container

when we run our asp.net core (REST) server application in the development environment (Win11, Visual Studio 2022) with activated compression the data the server returns are compressed. When I run the...

View Article

REST. Make order request [closed]

I have two entities: Order and OrderItem. Should I use one or two routes for request that make an order?One route:POST /orders (also creates OrderItems)Two routes:POST /ordersPOST /orderItems

View Article

POST JSON object using Spring REST template

I am posting JSON object using spring rest template. It works fine for less data, but posting more data throws a Request URI too long error. final String url = getServiceUrl() +"/rs/doc?param1=test";...

View Article
Browsing all 3607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>