diff OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 1063:0332e6e8c679

Fix automated generation of the list of resource children in the REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jul 2014 16:06:26 +0200
parents 84b6d7bca6db
children bec1eccf976c
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Fri Jul 25 14:51:18 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Fri Jul 25 16:06:26 2014 +0200
@@ -96,5 +96,9 @@
     RegisterArchive();
 
     Register("/instances", UploadDicomFile);
+
+    // Auto-generated directories
+    Register("/tools", RestApi::AutoListChildren);
+    Register("/instances/{id}/frames/{frame}", RestApi::AutoListChildren);
   }
 }