Skip to content

Add endpoints sample. #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 23, 2016
Merged

Add endpoints sample. #248

merged 7 commits into from
Jun 23, 2016

Conversation

broady
Copy link
Contributor

@broady broady commented May 26, 2016

No description provided.

@broady
Copy link
Contributor Author

broady commented May 26, 2016

@shun-fan @tswast PTAL

<version>3.3</version>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't want Java 8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied directly from the hello world app.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Java 7 is fine. Might as well use it until you need a Java 8 feature.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - s.b. Java8 for this.

@tswast
Copy link
Contributor

tswast commented May 26, 2016

LGTM after adding JavaDoc to the auth info handler.

@broady
Copy link
Contributor Author

broady commented May 26, 2016

There's also a problem that this actually doesn't deploy. It needs additional support from the gcloud maven plugin.

DO NOT SUBMIT yet.

@broady
Copy link
Contributor Author

broady commented May 27, 2016

@broady
Copy link
Contributor Author

broady commented May 27, 2016

@tswast javadoc done. does it look like the correct phrasing, etc?

@codecov-io
Copy link

codecov-io commented May 27, 2016

Current coverage is 46.76%

Merging #248 into master will decrease coverage by 9.95%

@@             master       #248   diff @@
==========================================
  Files            74         77     +3   
  Lines          1943       2164   +221   
  Methods           0          0          
  Messages          0          0          
  Branches        137        148    +11   
==========================================
- Hits           1102       1012    -90   
- Misses          841       1121   +280   
- Partials          0         31    +31   

Powered by Codecov. Last updated by b3c9d97...df6dc60

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. We've been adding license headers to new pom.xml files (has to appear after <?xml ...> line.

Also, the XML attributes to the <project> tag are optional, so we've been leaving them out.

@@ -0,0 +1,8 @@
# Google Cloud Endpoints on App Engine flexible environment
This sample demonstrates how to use Google Cloud Endpoints on Google App Engine Flexible Environment using Java.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should mention where you need to edit to make this work.

@broady
Copy link
Contributor Author

broady commented Jun 6, 2016

I'll revisit this at some point. This now deploys, but doesn't work. The Java runtime and/or Endpoints runtime needs some modification.

@lesv
Copy link
Contributor

lesv commented Jun 6, 2016

@ludoch This is waiting on mvn plugin work. GoogleCloudPlatform/gcloud-maven-plugin#88

@broady
Copy link
Contributor Author

broady commented Jun 6, 2016

No, it isn't. The maven plugin was updated.

@puneith
Copy link
Contributor

puneith commented Jun 7, 2016

@broady Coverage for unit tests decreases. Add tests?

<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.7.v20160115</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9.3.8.v20160314

@broady
Copy link
Contributor Author

broady commented Jun 23, 2016

This is now functional.

Java DPEs, I need you to pick up this CL if you want any other modifications. At the moment, it's equivalent to our other samples, suitable for Alpha.

@lesv lesv self-assigned this Jun 23, 2016
@lesv
Copy link
Contributor

lesv commented Jun 23, 2016

Would still like to see all the comments incorporated, but LGTM for now.

@lesv lesv merged commit 7ea9632 into master Jun 23, 2016
@broady broady deleted the endpoints branch June 23, 2016 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants