cloudendpoints / endpoints-java

A Java framework for building RESTful APIs on Google App Engine
Apache License 2.0
32 stars 35 forks source link

Spring (SpringFox) integration #54

Open jschoedt opened 7 years ago

jschoedt commented 7 years ago

It would be nice with some kind of integration with Spring Framework and eg. SpringFox.

I am able to generate the api spec without the use of "endpoints-framework-tools" just fine and even deploying to appengine (standard) works. But then im stuck. I guess I need the EndpointsServlet but that does not integrate nice with the other frameworks :-/

Could we extend the EndpointsServlet to have it search for eg. @GetMapping annotations. And have com.google.api.server.spi.EndpointsServlet#createService return the beans instead of creating new instances?

.... Thanks

rdayal commented 7 years ago

Hi - just wondering why you want to use two frameworks for REST APIs in your app. Why not just use SpringFox and not use Google Cloud Endpoints?

@tangiel

jschoedt commented 7 years ago

@tangiel

I can think of 2 reasons but there may be more:

  1. Monitoring and logging through the cloud console
  2. Having nginx remove the connection/authorization load from my servers

How can I get those features without using the second framework? I would like to avoid it :-)