integration tests for the file history endpoint

This commit is contained in:
Mohamed Karray
2018-09-10 09:51:59 +02:00
parent 56d323793e
commit 8ec7677b75
4 changed files with 296 additions and 4 deletions

View File

@@ -40,6 +40,20 @@ public class FileHistoryRootResource {
this.fileHistoryCollectionToDtoMapper = fileHistoryCollectionToDtoMapper;
}
/**
* Get all changesets related to the given file starting with the given revision
*
* @param namespace the repository namespace
* @param name the repository name
* @param revision the revision
* @param path the path of the file
* @param page pagination
* @param pageSize pagination
* @return all changesets related to the given file starting with the given revision
* @throws IOException on io error
* @throws RevisionNotFoundException on missing revision
* @throws RepositoryNotFoundException on missing repository
*/
@GET
@Path("{revision}/{path: .*}")
@StatusCodes({