From cf67adffef79cf4511507272d5074452d3183d45 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Fri, 24 Mar 2023 15:52:46 +0100 Subject: [PATCH] chore: adjust readme --- readme.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/readme.md b/readme.md index 7bea18d..dfbcdea 100644 --- a/readme.md +++ b/readme.md @@ -10,3 +10,31 @@ sudo apt install build-essential --no-install-recommends sudo apt install libulfius-dev --no-install-recommends sudo apt install libconfig-dev --no-install-recommends ``` + +## test API + +* create +``` +curl --data "name=Hi from curl!" http://:/entities/create +curl -X POST --data "name=Hi from curl!" http://:/entities/create +``` + +* read all +``` +curl http://:/entities/info +``` + +* read single +``` +curl http://:/entities/35/info +``` + +* update +``` +curl --data "name=Hi from curl!" http://:/entities/1/update +``` + +* delete +``` +curl --request "DELETE" http://localhost:/entities/1/delete +```