-
Notifications
You must be signed in to change notification settings - Fork 46
Readme #33
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
Conversation
| @@ -0,0 +1,19 @@ | |||
| # Contributing | |||
|
|
|||
| The team welcomes contributions! To make changes: | |||
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.
Extra space.
readme.md
Outdated
|
|
||
| ## Usage | ||
|
|
||
| The recommended way to use conjure-java is via a build tool like [gradle-conjure](https://github.com/palantir/gradle-conjure). However, if you don't want to use gradle-conjure, there is also a executable which conforms to [RFC 002](https://github.com/palantir/conjure/blob/develop/rfc/002-contract-for-conjure-generators.md), published on [bintray](https://bintray.com/palantir/releases/conjure-java). |
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.
an executable
readme.md
Outdated
|
|
||
| Usage: conjure-java generate <input> <output> [...options] | ||
|
|
||
| --objects Generate POJOs for Conjure type definitions |
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.
add note that these are boolean flags?
readme.md
Outdated
| - **Conjure alias: [StringAliasExample](./conjure-java-core/src/integrationInput/java/com/palantir/product/StringAliasExample.java)** | ||
| Aliases have exactly the same JSON representation as their inner type, so they are useful for making error-prone function signatures more more bulletproof: |
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.
remove extra more
readme.md
Outdated
|
|
||
| ## Example Retrofit interfaces | ||
|
|
||
| As an alternative to the JAX-RS interfaces above, conjure-java can generate equivalent interfaces with [Retrofit2](http://square.github.io/retrofit/) annotations. These clients are useful if you to to stream binary data or make non-blocking async calls: |
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.
"to to stream"" > "want to stream"
| Call<ResponseBody> binary(@Header("Authorization") AuthHeader authHeader); | ||
| ``` | ||
|
|
||
| You can also supply the `--retrofitCompletableFutures` flag if you prefer Java 8 CompletableFutures instead of OkHttp's Call. |
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.
should this be included in the usage?
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.
It messes up all the indenting and seemed a bit unimportant
readme.md
Outdated
|
|
||
| You can also supply the `--retrofitCompletableFutures` flag if you prefer Java 8 CompletableFutures instead of OkHttp's Call. | ||
| ## Local development |
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 this is Contribution section
Before this PR
No useful information on README.
After this PR
README describes design decisions and intended usage of conjure-java objects, and links to other conjure-ecosystem projects.