Medical Imaging Interaction Toolkit  2022.04.99-8b707dbd
Medical Imaging Interaction Toolkit
mitkIRESTObserver.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIRESTObserver_h
14 #define mitkIRESTObserver_h
15 
16 #include <MitkRESTExports.h>
17 #include <mitkRESTUtil.h>
18 #include <cpprest/json.h>
19 #include <cpprest/uri.h>
20 #include <cpprest/http_client.h>
21 
22 namespace mitk
23 {
25  {
26  public:
32  virtual ~IRESTObserver();
33 
43  virtual web::http::http_response Notify(const web::uri &uri,
44  const web::json::value &data,
45  const web::http::method &method,
46  const mitk::RESTUtil::ParamMap &headers) = 0;
47 
48 
49  private:
50  };
51 }
52 
53 #endif
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKREST_EXPORT
std::map< utility::string_t, utility::string_t > ParamMap
Definition: mitkRESTUtil.h:27