libulfius API for rgncycle
Go to file
dancingCycle 82756d0ecf feat(relations): add *distances* endpoint 2023-09-22 15:02:28 +02:00
etc/systemd/system feat: adjust systemd service script 2023-03-24 14:31:21 +01:00
http-delete feat(http-delete-mutex): initial commit 2023-04-05 16:25:45 +02:00
http-delete-mutex feat(http-delete-mutex): incorporate db update 2023-04-19 15:26:14 +02:00
http-get feat(http-get): initial commit 2023-03-15 20:53:49 +01:00
http-get-param feat(http-get-param): initial commit 2023-03-17 14:53:31 +01:00
http-post feat(http-post): adjust HTTP POST request 2023-03-24 14:50:27 +01:00
http-post-update feat(http-post-update): adjust HTTP POST request 2023-04-03 15:11:04 +02:00
relations feat(relations): add *distances* endpoint 2023-09-22 15:02:28 +02:00
LICENSE Initial commit 2023-03-15 17:35:29 +01:00
readme.md feat(relations): add *distances* endpoint 2023-09-22 15:02:28 +02:00

readme.md

rgncycle-libulfius

libulfius API for rgncycle

preparation

sudo apt install make --no-install-recommends
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

  • test
curl -X GET http://<host>:<port>/hello
  • create
curl --data "name=Hi from curl!" http://<host>:<port>/entities/create
curl -X POST --data "name=Hi from curl!" http://<host>:<port>/entities/create
  • read all
curl -X GET http://<host>:<port>/entities/info
curl -X GET http://<host>:<port>/relations/info
curl -X GET http://<host>:<port>/distances/info
  • read single
curl http://<host>:<port>/entities/35/info
  • update
curl --data "name=Hi from curl!" http://<host>:<port>/entities/1/update
curl -X POST --data "name=Update!" http://<host>:<port>/entities/1/update
  • delete
curl -X DELETE http://localhost:<port>/entities/1/delete