Skip to content

Managing parameter input #3

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

Closed
kination opened this issue May 24, 2020 · 1 comment
Closed

Managing parameter input #3

kination opened this issue May 24, 2020 · 1 comment

Comments

@kination
Copy link
Contributor

Currently, it needs to generate json -> string for POST:

Indexes book = ms.getIndex("books");
        
JsonArray jsonArray = new JsonArray();
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("1111", "alice in wonderland");
jsonArray.add(jsonObject);

// add new document "[{"1111": "alice in wonderland"}]"
String response = book.addDocument(jsonObject.toString());

To make this simple:

  1. Accept JSON modules(Gson, Jackson, ...) as input
  2. Create custom input format(it will use JSON module internally to convert input into JSON format)
@curquiza
Copy link
Member

curquiza commented Nov 25, 2020

Closed by #36

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

No branches or pull requests

3 participants