Manage user corpora
If user authentication and private user corpora are enabled, these can be used to manage the user's own corpora: creating/deleting, adding data and sharing.
("global" corpora, that don't belong to a specific user, can not be managed through these endpoints at this time)
- Create corpus :
POST /blacklab-server
Create a new corpus. - Delete corpus :
DELETE /blacklab-server/<corpus-name>
Delete the specified corpus. - Add documents to corpus :
POST /blacklab-server/<corpus-name>/docs
Index the uploaded input files, adding documents to the corpus. - Get corpus sharing settings :
GET /blacklab-server/<corpus-name>/sharing
Return the list of users with whom the corpus is shared, if any. - Update corpus sharing settings :
POST /blacklab-server/<corpus-name>/sharing
Set or update the list of users to share the corpus with. - Corpora shared with me :
GET /blacklab-server/shared-with-me
Return a list of corpora shared with the currently logged-in user.