Object modelling - REST vs Hibernate

I am facing this in a project of my own, but i am sure this should be a generic issue. I am trying to build rest services using java, spring and hibernate. My typical entity object is modeled like below @Entity public class Company implements Seri...
more »

2017-09-27 09:09 (0) Answers

Loading RESTful objects after authentication

I'd like to know what is the best practice for loading RESTful objects after an authentication procedure. For example I have an app, that after logging in, it needs to retrieve a list of people, places and some other account-pertinent information. W...
more »

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

Export CSV File - JAX RS - REST - AJAX

I create a function to download a CSV File. I will use that to download simple reports. I got the error below on Netbeans using Wildfly and JAX RS RESTEASY002005: Failed executing POST /reports/downloadCSV/: org.jboss.resteasy.core.NoMessageBodyW...
more »

2017-09-14 18:09 (2) Answers

Use POST for delete/update in Rest?

I understand (From accepted answer What is the difference between HTTP and REST?) that REST is just a set of rules about how to use HTTP Accepted answer says No, REST is the way HTTP should be used. Today we only use a tiny bit of the HTTP ...
more »

2017-09-12 06:09 (3) Answers

How to handle rate limiting and caching?

So far I have achieved a very basic understanding of how the HTTP protocol works. My question isn't going to be a practical one, more of a (stupid) conceptual one. I searched for a policy concerning these types of things, and to my understanding this...
more »

2017-09-09 17:09 (0) Answers

Gradle task for using wsgen to generate webservice

I have to generate java webservice from java classes. I am able to generate the same using wsgen using jdk utility wsgen. Now I want to generate the webservices for multiple java classes in bulk using build tool gradle. I would be generate all the cl...
more »

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

Correct way to naming REST web services

I was wondering about the REST url and the better way to create it. I know there are no strict rules and I can use whatever but I think it is important to use a standard into the project. Let's suppose this scenario : I have a booking system with roo...
more »

2017-08-29 12:08 (0) Answers

Building REST Java API on existing PHP server

In a recent academic project I need to create some REST Java API (web service) that works on an existing PHP server. I don't have much clear ideas on how to implement it. How would you implement the logic? Is it okay to send a request (Ajax) to the w...
more »

2017-08-25 09:08 (1) Answers

Apache Axis vs other methods

I need to choose method of implementing a web services. is there any disadvantages of using Apache Axis over other methods like Axis 2, JAX-WS ? specially in security,performance and compatibility ...
more »

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

Body tab in POSTMAN disabled

I am developing a REST Web Service application but while using REST Client POSTMAN the Body tab is showing disabled. I have created a class named EmployeeController which handles the URI call as is shown below: package com.Employee; @Path("/respo...
more »

2017-08-21 21:08 (1) Answers