Skip to content

Add ability to POST text to BrainDocs #2

@kmanninen

Description

@kmanninen

Tomi,

I haven't completed the BrainDocs API update yet, however I wanted to give you a heads up about what I'm planning to do. I plan to implement a POST function for a library that will accept an array of JSON objects. It will return a libraryId that can then be used to monitor the status of the library (whether it is ready to analyze or not).

The API function will be:

Request:

POST /library
Content-Type: application/json

[{"id":"123", "text":"This is testunit 1."}, {"id":"abc", "text":"This is textunit 2."}, ...]

Response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"ok": true, "libraryId": "507f1f77bcf86cd799439011"}

I will let you know when complete. -Kurt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions