Let users create a Subcorpus
@AlfredoDiNapoli would you be able to look into the following problem?
This MR's Changes
I added a command to create a subcorpus and a route to launch it. This addresses #384.
The code compiles fine.
The Problem
We tested the new route with @anoe using the Swagger interface, but we get Error: Unauthorized
as a server response.
Various Sanity Checks/Things We've Tried:
We did authenticate beforehand (getting a token using the auth
route, then clicking the Authorize
button and copypasting the token, and checking that it says "Authorized").
We tried copypasting the Swagger-generated curl command; the command exits without output, and the subcorpus command does not get executed either (see attached screenshot)
We tried adding a print statement to the subcorpus command to check that the problem lies with it not being called (and not to it being called but behaving the wrong way), and indeed it does not get called.