comparison Core/RestApi/RestApi.h @ 977:2a9e08136860 plugins

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Jun 2014 16:09:41 +0200
parents 6968356679c0
children f1ff2a2f06cd
comparison
equal deleted inserted replaced
976:6968356679c0 977:2a9e08136860
30 **/ 30 **/
31 31
32 32
33 #pragma once 33 #pragma once
34 34
35 #include "../HttpServer/HttpHandler.h" 35 #include "RestApiHierarchy.h"
36 #include "RestApiPath.h"
37 #include "RestApiOutput.h"
38 #include "RestApiGetCall.h"
39 #include "RestApiPutCall.h"
40 #include "RestApiPostCall.h"
41 #include "RestApiDeleteCall.h"
42 36
43 #include <list> 37 #include <list>
44 38
45 namespace Orthanc 39 namespace Orthanc
46 { 40 {
47 class RestApi : public HttpHandler 41 class RestApi : public HttpHandler
48 { 42 {
49 private: 43 private:
44 RestApiHierarchy root_;
45
50 typedef std::list< std::pair<RestApiPath*, RestApiGetCall::Handler> > GetHandlers; 46 typedef std::list< std::pair<RestApiPath*, RestApiGetCall::Handler> > GetHandlers;
51 typedef std::list< std::pair<RestApiPath*, RestApiPutCall::Handler> > PutHandlers; 47 typedef std::list< std::pair<RestApiPath*, RestApiPutCall::Handler> > PutHandlers;
52 typedef std::list< std::pair<RestApiPath*, RestApiPostCall::Handler> > PostHandlers; 48 typedef std::list< std::pair<RestApiPath*, RestApiPostCall::Handler> > PostHandlers;
53 typedef std::list< std::pair<RestApiPath*, RestApiDeleteCall::Handler> > DeleteHandlers; 49 typedef std::list< std::pair<RestApiPath*, RestApiDeleteCall::Handler> > DeleteHandlers;
54 50