From 1423204470ebae1fe9ca56a6c4a1f0f139d140ae Mon Sep 17 00:00:00 2001 From: Manuel83 Date: Thu, 6 Jul 2017 00:06:59 +0200 Subject: [PATCH] Created Recipe REST API (markdown) --- Recipe-REST-API.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Recipe-REST-API.md diff --git a/Recipe-REST-API.md b/Recipe-REST-API.md new file mode 100644 index 0000000..56bfec8 --- /dev/null +++ b/Recipe-REST-API.md @@ -0,0 +1,20 @@ +CraftBeerPi 3.0 offers a RESP API import recipes from other systems. + +**HTTP Endpoint** + +Method: POST + +URL: http://:5000/api/recipe/import/v1/ + +**Request Body Example** +``` +{"name":"MY HOME BREW", + "steps": [ + {"name":"Mash1","type":"MASH", "timer": 10, "temp": 54}, + {"name":"Mash2","type":"MASH", "timer": 10, "temp": 54}, + {"name":"ChilStep","type":"CHIL", "timer": 10 }, + {"name":"BoilStep","type":"BOIL", "timer": 60, "temp": 54}, + {"name":"ChilStep","type":"CHIL", "timer": 15} + ] +} +``` \ No newline at end of file