You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

2 years ago
  1. # C++ API client
  2. The Seaweedfs Master Server API allows you to store blobs
  3. ## Overview
  4. This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client.
  5. - API version: 3.43.0
  6. - Package version:
  7. - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen
  8. - API namespace: org.openapitools.client.api
  9. - Model namespace: org.openapitools.client.model
  10. ## Installation
  11. ### Prerequisites
  12. Install [cpprestsdk](https://github.com/Microsoft/cpprestsdk).
  13. - Windows: `vcpkg install cpprestsdk cpprestsdk:x64-windows boost-uuid boost-uuid:x64-windows`
  14. - Mac: `brew install cpprestsdk`
  15. - Linux: `sudo apt-get install libcpprest-dev`
  16. ### Build
  17. ```sh
  18. cmake -DCPPREST_ROOT=/usr -DCMAKE_CXX_FLAGS="-I/usr/local/opt/openssl/include" -DCMAKE_MODULE_LINKER_FLAGS="-L/usr/local/opt/openssl/lib"
  19. make
  20. ```
  21. ### Build on Windows with Visual Studio (VS2017)
  22. - Right click on folder containing source code
  23. - Select 'Open in visual studio'
  24. - Once visual studio opens, CMake should show up in top menu bar.
  25. - Select CMake > Build All.
  26. *Note: If the CMake menu item doesn't show up in Visual Studio, CMake
  27. for Visual Studio must be installed. In this case, open the 'Visual Studio
  28. Installer' application. Select 'modify' Visual Studio 2017. Make sure
  29. 'Desktop Development with C++' is installed, and specifically that 'Visual
  30. C++ tools for CMake' is selected in the 'Installation Details' section.
  31. Also be sure to review the CMakeLists.txt file. Edits are likely required.*
  32. ## Author