Interceptor with Spring REST service

I have implemented a rest webservice using Spring.My RestController code is as given below.I have created the interceptor as you have suggested in the above post.I am able to get the rest response but the requests are not getting intercepted.Could...
more »

2017-06-22 21:06 (1) Answers

Route in FOSRestBundle not working

Im stay a few days with this problem. I just read the documentation of this Bundle, but im trying all and nothing work. The problem is always: No route found for "GET /produtos". Im only want a make HTTP get,new,post,put,delete work in html.twig . ...
more »

2017-06-22 19:06 (0) Answers

Poll REST API for long running task

I'm designing a REST API to perform some tasks which require extensive computation, to be used by an additional service. In essence, a GET request to /command will begin the task, with the status being updated at /queue/12345. The client polls /queue...
more »

2017-06-22 17:06 (1) Answers

Detect incoming connections to application

I have an application with RESTful services, and when bad requests arrive, the application completely blows up. (On Mono, Windows just returns a Bad Request - which is the behavior I'd expect). The application runs perfectly fine and is stable, perf...
more »

2017-06-22 10:06 (0) Answers

REST Call Fast Response

I have one GET/POST REST call like ( which returns json response object. So due to response is more than 1MB every time when i hit the api browser download that 1MB which make Response late and takes time to do...
more »

2017-06-22 08:06 (0) Answers

How to Use sorting in Spring Data Rest GET method

When I create any repository in spring framework like following it gives method by default to get all records of the entity using this API GET : http://localhost:3000/api/addresses It sends data from ascending order But If I want my data in descen...
more »

2017-06-22 08:06 (2) Answers

Mule ESB Consume Multiple REST Services

My API name is A, and I have to call 2 REST services in my API. I was able to call one REST service, and tried calling 2nd REST service using Scatter-Gather but no luck. Here is my flow diagram for calling single REST service Based on service res...
more »

2017-06-21 22:06 (1) Answers

Java: Cancel REST service method execution

I expose an Stateless EJB as a REST service. In my POST-method, I call Result r = longRunningBusinessMethod(); //return data How do I go about making it possible to cancel the execution of longRunningBusinessMethod() from the client side? I thoug...
more »

2017-06-21 20:06 (2) Answers

How to send json data in POST request using C#

I want to send json data in POST request using C#. I have tried few ways but facing lot of issues . I need to request using request body as raw json from string and json data from json file. How can i send request using these two data forms. Ex: F...
more »

2017-06-21 14:06 (5) Answers

WP-rest api response too big

when i call a wp rest api the response is too big around 1.5 mb wich make may mobile app very slow , how can i determine what filed the wp-rest api should return . exemple : instead of getting "tags": [], "better_featured_image": { "id...
more »

2017-06-21 12:06 (1) Answers

Implementation of the Factory Design Pattern

I am developing a small application for my client and I tried to apply there Factory Method design pattern. I am not sure if I have done it correctly. Basically I have an abstract class Scheme that is extended by concrete Schemes (AccountScheme, Co...
more »

2017-06-21 02:06 (1) Answers

spring REST response json format

I am working on building a REST API and one of the concern I have is with the attributes for creating and updating the attributes. My DTO class have a ton of attributes and object references. I need to specify a subset of attributes while creating an...
more »

2017-06-20 19:06 (0) Answers

Request.args as filters from several path levels

I would know if it's possible to get request.args from different path levels. Currently i can use request.args for only one level : my_ip:my_port/modules/?name=git or my_ip:my_port/modules/?id=0   @module_blueprint.route('/', methods=['GET'...
more »

2017-06-20 15:06 (1) Answers