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.
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 ...
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 ...
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)
{
...
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 ...
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, ...
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 ...
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</...
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, ...
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....
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 ...
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-...
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....
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:
{"...
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 ...
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 ...