Skip to main content

Questions tagged [rest]

REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. It has increased in popularity relative to RPC architectures such as SOAP due to the intrinsic de-coupling of client from server that comes from having a uniform interface between heterogeneous systems.

rest
34,499 questions with no upvoted or accepted answers
37 votes
0 answers
6k views

Does 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-phone What ...
Jesús Alonso's user avatar
26 votes
0 answers
1k views

Jitsi Videobridge Negotiation

I am trying to integrate Jitsi Videobridge into my existing WebRTC application. Right now the signaling is relatively straightforward, offer, answer, candidates and we're off and running. I cannot ...
Ternary's user avatar
  • 2,401
19 votes
2 answers
3k views

WCF IErrorHandler to return FaultException to SOAP and WebHttpException to POX and Json endpoints

I have a set of SOAP webservices that are wrapping exceptions using IErrorHandler, specifically: public sealed class ErrorHandler : IErrorHandler { public bool HandleError(Exception error) { ...
Rebecca's user avatar
  • 14.3k
14 votes
0 answers
2k views

How to access Bitbucket Server bundled elasticsearch via REST API

I need to run a code search report across many projects/repositories hosted on Bitbucket Server. The browser interface is not helpful for this task as it pages the results and requires manual ...
Kim Taylor's user avatar
14 votes
3 answers
8k views

How to upload file AND model using Web API?

Basically I'm trying to upload an image along with an enum using Web API 2. Here's the controller signature: [HttpPost] public UploadResponseVm Upload([FromBody]ResImageType type) { The thing is, ...
J. Doe's user avatar
  • 677
13 votes
2 answers
4k views

Grails REST API - Render JSON with paging, metadata and custom include fields from params

I'm looking for a best way to design a custom JSON response for RESTful API in Grails based on this presentation Design Beautiful REST + JSON APIs by Les Hazlewood. Here is my Domain class class ...
Ibrahim's user avatar
  • 1,451
13 votes
0 answers
6k views

@NotNull annotation is not checking null queryparameter in Jersey REST resource

I am trying to use javax.validation.validation-api for validating @QueryParam parameters. I have followed steps as below: Added dependency: <dependency> <groupId>javax.validation</...
Bruso's user avatar
  • 833
12 votes
0 answers
8k views

Google Drive upload error : "I/O error during system call, Software caused connection abort"

I have developed an Android application using which the user can upload large files (~1 to 2 GB in size) to his/her Google Drive account. I am using the Google Drive Rest API for Android. Sometimes, ...
Nimesh Chandramaniya's user avatar
11 votes
2 answers
7k views

Getting “java.net.SocketException: Connection reset with (SSL- Self Signed Certificate)” while invoking API From Jenkins Plugin

I have a sample Java Program which connects to a particular URL and calls an API that Use Self-Signed Certificate. The code being called is as follows: import java.io.BufferedReader; import java.io....
Sachin Bhatia's user avatar
11 votes
1 answer
12k views

Developing a Spring REST service with OData interface

I'm developing a RESTful service using the spring framework. This service has a few different controllers. Some of the controllers allow the user to query data from a datastore. On investigating, it ...
RagHaven's user avatar
  • 4,297
11 votes
0 answers
3k views

Next-best option in lieu of 'oneOf' in swagger (v2.0)

I've recently been diving back into REST and am looking for a tool with decent support for JSON-Schema. I'm using Swagger, and I began this project fully aware the Swagger implementation of JSON-...
ioneyez's user avatar
  • 111
11 votes
0 answers
8k views

NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object

Am getting following exception stack trace when trying to make a REST org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: java.lang....
Saurabh Mishra's user avatar
11 votes
2 answers
3k views

How to test REST endpoint when using callbacks using JAVA?

I want to write some test against an REST endpoint which is using a callback parameter. Might sound confusing so here's an explanation: first call is a POST to /publish with the payload: {"...
vicusbass's user avatar
  • 1,794
11 votes
3 answers
40k views

Spring 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 ...
Håvard Bakke's user avatar
10 votes
0 answers
9k views

Spring validation with inheritance

I'm trying to validate a DTO (formModel, whatever term you prefer) which is a bit layered (inheritance and dependencies to other classes). Is it possible to get the following configuration of models ...
Ognjen Mišić's user avatar

15 30 50 per page
1
2 3 4 5
2300