zf-rest no post data receiving

I'm using zend framework 2 to build my applications. I've a problem to create a new rest entity. I've the following configuration: $inputFilterSpecForStrings = [ 'required' => false, 'allow_empty' => false, 'filters' => [ ...
more »

2017-09-11 16:09 (0) Answers

Jsonify nested objects using Jackson

I have a class like: class Car { private Engine engine; private String color; private int maxspeed; } and Engine class like class Engine { private String fueltype; private String enginetype; } I want ...
more »

2017-09-07 18:09 (1) Answers

AngularJS promise catch 401

I am using a very basic angularJS code for a user login like this: [...] this.login = function(email, password) { promise = $http.post('/login', { 'email': email, 'password': password });...
more »

2017-09-05 01:09 (1) Answers

Ignore different fields in CSV and JSON

I have s Spring REST API that usually just outputs JSON. Now I want to also export CSVs for some endpoints. Jackson has a library for that <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId&g...
more »

2017-09-04 10:09 (1) Answers

Jackson - Ignore attributes with specific name

Is it possible to configure Jackson to ignore properties of objects based on the attribute name? I'm serializing Hibernate entities with Jackson and every object on my JSON file comes with "hibernateLazyInitializer" attribute which i want to ignore....
more »

2017-08-29 20:08 (1) Answers

How to use backend permissions in frontend

I have a web application using Rails as backend and AngularJS as frontend and it has a rather complicated permission system that must hide/show buttons in the frontend accordingly. For example, imagine something like ebay, if I created a product, ...
more »

2017-08-28 18:08 (1) Answers

Delphi implement REST server

I have a mysql database on a server and I insert data on it using a script I have written. I have to open www.mywebsite.com/rest/create.php?param=value&param2=value2 to create a new resource, then I have to open another php file to edit an item a...
more »

2017-08-27 18:08 (1) Answers

Error 404 Jersey Tomcat Eclipse Web service

This might seem repititive but i swear i've gone through every answer on Stack overflow and nothing seems to be working for me. I'm making a file upload web service using Jersey in Eclipse Neon. Server: I have Tomcat 8.5 on my PC (It is in C, i can ...
more »

2017-08-27 16:08 (1) Answers

Deploy Maven Proyect using Eclipse and Tomcat

I'm a beginner in this field. I developed a very simple web service using eclipse for edit the code and tomcat 8.5 for deploy the web service. The Name of maven project is PruebaMaven and I can deploy that with success getting the classic hello world...
more »

2017-08-23 18:08 (0) Answers

Angular 4 Display JSON Data from HTTP Get Request

I have a simple Angular 4 application which is contacting a HTTP REST server and this server is simply returning a JSON payload and I would like to display this JSON payload as is in the browser. This is my makeRequest typescript function: import { ...
more »

2017-08-23 13:08 (2) Answers

JSON data not include entity

I am developing a restful api.I have two entities. User and UserRole. When i send the request to api for user, it gives me { "id": 11, "name": "mert", "username": "zbrave", "password": "$2a$10$N0eqNiuikWCy9ETQ1rdau.XEELcyEO7kukkfoiNI...
more »

2017-08-20 22:08 (1) Answers

Invalid format issue Joda LocalDate in collection

Let's say I got an entity: @Entity @Table(name = "history_experience_entity") @AllArgsConstructor @NoArgsConstructor public class HistoryExperienceEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValu...
more »

2017-08-17 21:08 (0) Answers

Django rest pagination next url is not correct

I have created a Django rest api using ModelViewSet. Deployed in staging and now in production.Production is working fine,but staging has some incorrect "next" url. See the key "next" in both images, first image is the staging response and second...
more »

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

Jackson's Access.WRITE_ONLY during test null

I'm currently playing around with Jackson's de/serialization features and I encountered a problem, I don't know how to solve. During my test the @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) annotation is ignored and it only shows null. How...
more »

2017-08-14 19:08 (0) Answers

How to send Date in REST API in POST method

I am trying to build RESTful web service with Spring support. I am getting following exception when I am trying to send POST request. Input: POST http://localhost:8080/InventoryDemo/item In JSON Payload: {"materialId":"ID02","materialName":"...
more »

2017-08-14 08:08 (3) Answers

How can I debug my retrofit API call?

I'm using retrofit to get some data from the Flickr api. The method I'm making the call in looks like this: public static List<String> getImageIds(int size) { Call<PhotosList> call = flickrService.getPhotos(apiKey, format, "1"); ...
more »

2017-08-12 05:08 (2) Answers

Codeigniter restclient not working

I am trying to install the CodeIgniter RESTClient and RESTServer libraries for my solution. (philsturgeon-codeigniter-restclient and chriskacerguis-codeigniter-restserver ). I managed to get the rest server up and running, but I am encountering is...
more »

2017-08-07 20:08 (0) Answers

Can't generate json with named root element

I have a some code with next layers: @JsonRootName("users") @Entity @Table(name = "users") public class User { @Id @GeneratedValue(strategy= GenerationType.AUTO) @Column(name = "id") private Integer id; @Column(name = "first_name") ...
more »

2017-08-05 18:08 (2) Answers