Configuring timeout for httpClient has no effect

I am trying to configure a REST interface using the following method: protected ClientExecutor configureRestConnection() throws GeneralSecurityException { CloseableHttpClient httpClient = null; final SSLConnectionSocketFactory sslsf = this.c...
more »

2017-11-13 17:11 (0) Answers

Spring Data Rest object with relations

In an attempt to avoid the use of controllers as much as possible for my relational database, I decided to make use of the Spring Boot framework with the Data REST plugin. This works fine for objects that contain primitive types and Strings, but I'm ...
more »

2017-11-10 17:11 (0) Answers

Quick API Rest with Python for mocking responses

I am testing a C# application that make requests to another API Rest and I want to mock the server. I known basic python and I was wondering if I can write a simple API Rest server without be involved with large frameworks like Django. It would be a ...
more »

2017-11-08 17:11 (1) Answers

Custom Angular setup for MIT library/project

Hi I need your help trying to figure it out something. First a little background, I was used to code in Django, it was fast to code and good, but times change and Node is taking over most of new apps, then I move to Express a couple of years ago, ho...
more »

2017-11-05 22:11 (0) Answers

Post upload files in angular 4 from spring boot?

I have an api handle the request to upload file (in spring boot) as follows: @PostMapping("/api/admin/product/{id}/upload") public ResponseEntity<Product> postUpload(@PathVariable("id") Integer id, @RequestParam("image") MultipartFile imageFil...
more »

2017-11-05 16:11 (1) Answers

Capture iphone REST requests

I want to capture POST/GET requests sent by my iPhone. I tried to connect my macbook to Lan and share the connection over Wifi. I connected to the shared wifi with my iPhone and started wireShark. It didin't detect any packet from my phone on both in...
more »

2017-10-29 18:10 (1) Answers

Prevent accidental deletion on API call

I have a web method to delete a Furniture or one of his Properties: [Authorize] [Route("api/furniture/{furnitureId}/{property?}")] public HttpResponseMessage Delete(string furnitureId, string property = null) { try { if (property != ...
more »

2017-10-26 17:10 (1) Answers

django rest api for advance search

i want to create a api using django rest framework which will do some advance search, say a list of grocery item is saved in database and user want to create a list of grocery and he enters first 2 or 3 letters and then my api will do query to get re...
more »

2017-10-22 15:10 (1) Answers

Empty paginator after rest post

I built a rest api using zf-rest. I want to send data via post. The api should make a database call with the posted data and answer with a collection of hal entities and a paginator: public function create($data) { $inputFilter = $this->getInpu...
more »

2017-10-13 08:10 (0) Answers

Finding null records for Json return string

I have created a WEB API using MySQL DB. On the basis of data I am sending YES or NO. How API is working? I am passing a meter serial number and a date time. The API receives both of them. +- The minutes in time and display all the records within...
more »

2017-10-12 13:10 (1) Answers

Django use templatetag API Wrapper

I'm writing a custom API wrapper for automating stuff on multiple devices having a REST API. Authentication to these devices is via csrf token. I'm struggling making a connection via form input using the devices API as custom tag. In addition im not ...
more »

2017-10-08 16:10 (0) Answers

Laravel REST API documentation generator

I use Laravel 5.1, in a few weeks will be on a 5.5.*. I currently use Swagger, but I am not longer satisfied with that solution (lack of documentation, harmful debugging and big doc blocks). Is there a better one available? I've heard about those: ...
more »

2017-10-07 14:10 (0) Answers

Getting JSON [Object object] from rest interface

I have a simple web service using apache camel that, on HTTP GET, returns column names from a database as JSON. The GET is bound to my front end by a button click. On click in the developer tools I can see the XHR data returning the values I expect,...
more »

2017-10-02 18:10 (1) Answers

php database limit amount of request per minute

So i have this situation where i need to access a database, but this database is actualy used for another app. And the owner has said that i can only have 100 requests to this database per 15 seconds. So i tought of make a rest service which my app c...
more »

2017-09-30 10:09 (0) Answers

Passing arguments to a secured dropwizard resource

I have a resource, which is secured, if I remove the authentication, it appears to work, but then without the security, then what is the point? Here is my code : @POST @Path("/secured") @Timed @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaT...
more »

2017-09-26 06:09 (1) Answers