-
Notifications
You must be signed in to change notification settings - Fork 24
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
Inconsistencies in Consuming REST guide #28
Conversation
|
||
[source, java, indent=0] | ||
---- | ||
include::finish/src/main/java/io/openliberty/guides/consumingrest/Consumer.java[tags=!comment;!class] | ||
include::finish/src/main/java/io/openliberty/guides/consumingrest/Consumer.java[tags=!comment;] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README.adoc
Outdated
@@ -1,4 +1,4 @@ | |||
// Copyright (c) 2017 IBM Corporation and others. | |||
// Copyright (c) 2018 IBM Corporation and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're updating an existing file, the copyright year should be 2017, 2018
, you can just change it to 2018
.
README.adoc
Outdated
|
||
`src/main/java/io/openliberty/guides/consumingrest/Consumer.java`: | ||
The `Artist` and `Album` POJOs are ready for deserialization. To consume the JSON response | ||
from your REST service create the `Consumer` class in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a comma is needed in "from your REST service, create the Consumer
class in the"
README.adoc
Outdated
`src/main/java/io/openliberty/guides/consumingrest/Consumer.java`: | ||
The `Artist` and `Album` POJOs are ready for deserialization. To consume the JSON response | ||
from your REST service create the `Consumer` class in the | ||
`src/main/java/io/openliberty/guides/consumingrest/Consumer.java` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a ":" after file instead of "."
README.adoc
Outdated
the `start` directory. | ||
|
||
`src/main/java/io/openliberty/guides/consumingrest/service/ArtistResource.java`: | ||
the `src/main/java/io/openliberty/guides/consumingrest/service/ArtistResource.java` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a ":" after file instead of "."
README.adoc
Outdated
|
||
// ================================================================================================= | ||
// Testing deserialization | ||
// ================================================================================================= | ||
|
||
== Testing deserialization | ||
|
||
Create a test class, `src/test/java/it/io/openliberty/guides/consumingrest/ConsumingRestTest.java`. | ||
Create the `ConsumingRestTest` class in the | ||
`src/test/java/it/io/openliberty/guides/consumingrest/ConsumingRestTest.java` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a ":" after file instead of "."
@@ -1,6 +1,6 @@ | |||
// tag::comment[] | |||
/******************************************************************************* | |||
* Copyright (c) 2017 IBM Corporation and others. | |||
* Copyright (c) 2018 IBM Corporation and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for the copyright year.
I'm okay with the change needed for issue #32. |
@Kubik42 can you review the other changes in this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things, looks good otherwise.
README.adoc
Outdated
=== Processing JSON using JSON-B | ||
|
||
JSON-B is a Java API that is used to serialize Java objects to JSON messages and vice versa. | ||
|
||
To include the JSON-B provider in your project, add the following dependency to your `pom.xml` | ||
Open Liberty's `jsonb-1.0` feature on Maven Central includes the JSON-B provider through transitive dependencies. To include the JSON-B provider in your project, add the following dependency to your `pom.xml` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid listing the feature version as this doc will have to be updated everytime a new version of the feature is released. Perhaps we can say "Open Liberty's JSON-B feature..."?
cc6b089
to
53f689c
Compare
@Kubik42 I actually did not write that part but it has been changed! 😆 |
I'm fixing my own mistakes then :P Looks ok to merge to me, thanks for all your work on this one @KyleAure |
The following inconsistencies have been addressed: