Bug reports and pull requests are welcome on GitHub at https://github.com/typesense/typesense-java.
Please note we have a code of conduct, please follow it in all your interactions with the project.
Before making a PR to this repository look out for the following guidelines.
- Head over to Swagger Codegen and download the cli jar.
- Download the latest api spec for typesense server from typesense-api-spec
- Create a new
config.json
and add the following content{ "modelPackage" : "org.typesense.model", "apiPackage" : "org.typesense.api" }
- Run the following command:
java -jar swagger-codegen-cli-3.0.20.jar generate -i <path-to-spec> -l jaxrs-cxf-client -c <path-to-config.json> -o <out-dir>
- Now, copy the content under
<out-dir>/src/gen/java/org/typesense/model
and replace it with the content of thetypesense-java/src/main/java/org/typesense/model
folder in thetypesense-java
client repository. - And then make the necessary changes in
api
folder.
NOTE: The model
directory is read-only make sure not to edit it.