0

We have an application built using Springs/Hibernate/Springs-MVC/.

Now we want to provide RESTful services, planning to use Springs MVC. My question is, is it better to expose the service API directly as Rest Service or write a new Pojo Layer on top of the Service Layer and expose that ?

Will appreciate your insights. Thanks.

firefly
  • 252
  • 3
  • 10

1 Answers1

0

I am pretty sure you would want to have a top layer so you can only expose what you want to expose from your Web Service to the outside.

Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118