{"id":23237743,"url":"https://github.com/thecompez/restservice","last_synced_at":"2025-08-19T23:32:33.362Z","repository":{"id":157907455,"uuid":"308918720","full_name":"TheCompez/RestService","owner":"TheCompez","description":"RestService is a modern cross-platform RESTful library!","archived":false,"fork":false,"pushed_at":"2021-10-07T15:27:21.000Z","size":225,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-19T20:53:04.088Z","etag":null,"topics":["cpp20","curl","json","network","restful-api","restful-webservices","webservices"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCompez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-31T16:00:57.000Z","updated_at":"2024-04-07T10:46:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"994f2ef6-a85e-46f7-869b-39659d0852de","html_url":"https://github.com/TheCompez/RestService","commit_stats":null,"previous_names":["thecompez/restservice"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCompez%2FRestService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCompez%2FRestService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCompez%2FRestService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCompez%2FRestService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCompez","download_url":"https://codeload.github.com/TheCompez/RestService/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230374251,"owners_count":18216044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp20","curl","json","network","restful-api","restful-webservices","webservices"],"created_at":"2024-12-19T04:14:45.921Z","updated_at":"2024-12-19T04:14:46.442Z","avatar_url":"https://github.com/TheCompez.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## RestService is a modern cross-platform RESTful library ##\n**Note :** This library is not yet complete and conceptually under development.\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-c-plus-plus.svg)](https://forthebadge.com)\n\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/Kambiz-Asadzadeh/Kavenegar.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/Kambiz-Asadzadeh/RestService/alerts/)\n[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/Kambiz-Asadzadeh/Kavenegar.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/Kambiz-Asadzadeh/RestService/context:cpp)\n![Language iso: C++](https://img.shields.io/badge/C%2B%2B-17-blue)\n![Version](https://img.shields.io/badge/Version-0.4-lightgrey)\n![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20iOS%20%7C%20Android%20%7C%20Web-lightgrey)\n![Dependencies](https://img.shields.io/badge/dependencies-Curl%20%7C%20RapidJson-yellow)\n\n## Installation\n\u003cp\u003e\nFirst of all, You need to make sure that curl library is installed on your development environment. So it may have some problems!\n\u003c/p\u003e\n\n## Building\n\n- You need CMake tool for building source code\n- Get Curl \u0026 RapidJson [Pay Attention: RapidJson is header only]\n- All source code is written with Pure STL 1z (C++17)\n- MSVC 2017, GCC8.x or Clang 9.x\n- Add RestService.dll [on Windows], libRestService.dylib [on macOS] or libRestService.so [on Linux] for your project as external library. you can compile it by static mode.\n- Import SDK common header ```#include \u003cRestService\u003e```\n\n**Note:** In order to build the create, your compiler must support C++17 features.\n\n**Building extra option in CMake**\n```\ncmake .. -DENABLE_SAFE_ONLY=true \ncmake .. -DENABLE_SAFTY_MODE=true \n```\n\n## Usage Example\n```cpp\n#include \u003ciostream\u003e\n#include \u003cRestService\u003e\n\nint main()\n{\n    auto request = RestService::NetworkRequest();\n\n    //!GET Method\n    {\n        request.get(\"http://dummy.restapiexample.com/api/v1/employees\");\n        auto result = request.getResult();\n        std::cout \u003c\u003c \"Result Get: \" \u003c\u003c result \u003c\u003c std::endl;\n    }\n\n    //!POST Method\n    {\n        request.post(\"https://jsonplaceholder.typicode.com/comments?\", \"postId=1\");\n        auto result = request.getResult();\n        std::cout \u003c\u003c \"Result Post : \" \u003c\u003c result \u003c\u003c std::endl;\n    }\n\n    return 0;\n}\n\n```\n\n## Contribution\nBug fixes, docs, and enhancements welcome! Please let me know kambiz.ceo@gmail.com\n\n## **ToDo**\n * More Exception handling.\n * Add Logger for any states.\n * And more features...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecompez%2Frestservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecompez%2Frestservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecompez%2Frestservice/lists"}