Skip to content
Snippets Groups Projects
Andrea Formica's avatar
Andrea Formica authored
PayloadTagInfoDto class added

See merge request !23
a1097cb2
History

CREST Client C++ Library.

This library implements the client API to interact with the CREST Server. CrestApi in release-2.1.0 is compatible with version 4.x of CREST API provided by the server. The CREST server API v4 is deployed in :

  • crest-undertow-api.web.cern.ch/api-v4.0
  • crest.cern.ch/api-v4.0

Project structure

CrestApi project structure:

Directory Description
CrestApi Contains the header files for the library (CrestApi.h).
data Contains the data files used in the CrestApi examples.
doc Contains examples for the library.
scripts Contains the bash scripts used to create objects in the CREST Server.
src Contains the library source code (CrestApi.cxx).
test Contains the ATLAS test (test.cxx). (To be written later)
CMakeList.txt CMake file for the package CrestApi.

Installation

We provide this code as a standalone library. It requires:

  • the nlhomann JSON library (this is delivered within this package, be careful to the version used)
  • the CURL library
  • the BOOST library

Standalone (lxplus)

  • Create a build directory
mkdir build
  • Create Makefiles
cd ./build
cmake .. 
  • Compile library and examples
make

Testing

The simple examples are in the doc directory. The executables will be created in the build directory.

  • crest_example_server: this file utilizes a CREST server, so you need to provide a URL as argument. In general you can use http://crest-undertow-api.web.cern.ch

  • crest_example_fs : this file utilizes the file system.