comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5688:d0a264b803f1 find-refactoring

first implementation of database paging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jul 2024 15:36:28 +0200
parents 9b3816c21008
children 708952bd869c
comparison
equal deleted inserted replaced
5686:11575590e493 5688:d0a264b803f1
3342 } 3342 }
3343 3343
3344 const ResourceType level = StringToResourceType(request[KEY_LEVEL].asCString()); 3344 const ResourceType level = StringToResourceType(request[KEY_LEVEL].asCString());
3345 3345
3346 ResourceFinder finder(level, expand); 3346 ResourceFinder finder(level, expand);
3347 finder.SetDatabaseLimits(context.GetDatabaseLimits(level));
3347 finder.SetFormat(OrthancRestApi::GetDicomFormat(request, DicomToJsonFormat_Human)); 3348 finder.SetFormat(OrthancRestApi::GetDicomFormat(request, DicomToJsonFormat_Human));
3348 3349
3349 size_t limit = 0; 3350 size_t limit = 0;
3350 if (request.isMember(KEY_LIMIT)) 3351 if (request.isMember(KEY_LIMIT))
3351 { 3352 {