cloudendpoints / endpoints-java

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

add support for API keys in Swagger generation #18

Closed tangiel closed 8 years ago

tangiel commented 8 years ago

This change doesn't actually add API key validation, since that's done in the endpoints-management libraries. This simply adds Swagger generation so that the the management filter knows to do the validation. To keep things simple, we provide a boolean true or false and fix the API key to be a query parameter named "key". This is in line with what client libraries expect.

codecov-io commented 8 years ago

Current coverage is 80.35% (diff: 68.42%)

Merging #18 into master will decrease coverage by 0.09%

@@             master        #18   diff @@
==========================================
  Files           155        155          
  Lines          5009       5061    +52   
  Methods           0          0          
  Messages          0          0          
  Branches        842        858    +16   
==========================================
+ Hits           4030       4067    +37   
- Misses          716        725     +9   
- Partials        263        269     +6   

Powered by Codecov. Last update 9ca0a94...d79eda8