new_in_town
08/12/2024, 4:38 PMclient.collections().create(collectionSchema);
And... building CollectionSchema with Java API... is a lot of work and does not looks good... and to change it - you have to change the code...
is difficult to handle...
Can I have "best of both worlds"? To use JSON schema definition in Java API, something like this:
client.collections().createNewCollectionFromJsonFile(jsonFile)
Kishore Nallan
08/13/2024, 3:21 AMnew_in_town
08/13/2024, 6:37 AM<http://ApiCall.post|ApiCall.post>()
and Collections.create()
but accepting String (JSON file content) instead of CollectionSchema
...
If it works and looks not too ugly - I can make a pull request.
Classes Collections
and ApiCall
- they are not generated by Swagger, right?Kishore Nallan
08/13/2024, 6:40 AMnew_in_town
08/13/2024, 7:49 AMmkdir build
cd build
cp ../../typesense-api-spec/openapi.yml .
cd ..
mkdir data
typesense-server --data-dir ./data --api-key=xyz &
./gradlew build -x javadoc
have to exclude javadoc - otherwise i get an error...new_in_town
08/13/2024, 11:21 AM