[wip] Small pet project for me to learn rust concurrency features
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.
era d378005d38 Fix incorrect use of lock 6 months ago
src Fix incorrect use of lock 6 months ago
.gitignore hello world 6 months ago
Cargo.lock missing tests and put method 6 months ago
Cargo.toml missing tests and put method 6 months ago
kyo.jpg hello world 6 months ago
readme.md hello world 6 months ago

readme.md

kyo-rs

status: wip

kyo-rs is a software to quick start a fake API in order to validate your front-end. You basically pass a list of resources and kyo-rs will generat REST endpoints for you. The objects are saved in memory, in other words, when you restart the server all data is lost.

API usage

kyo-rs PORT JSON_CONFIG_FILE

PORT: The port where the server is suppose to run JSON_CONFIG_FILE: a Json config file as in:

{
"objects": [
	"teachers",
	"students",
]}

In that example, you would have two endpoints: localhost:PORT/teachers and localhost:PORT/students. To insert, update or get an item you just have to send a POST, PUT or GET HTTP request. PUT and GET requires you to send the resource id in the path, such as: localhsot:PORT/students/42