From cd7e34c11bae7f1b5d22cbac2c27e52d8508bb80 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 19 Sep 2020 09:38:32 +1000 Subject: [PATCH] Tweaked README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index d83cf8e..cd71fdb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,37 @@ +# Things That Need To Be Done + +* GitHub CI testing +* Updade the README +* Implement the create command +* Implement the update command +* Implement the delete command + +# sineQL + sineQL is a web API query language that mimics graphQL, designed solely for fun. sineQL consists of two languages - the schema language, and the query language. +You can try the language out right now! + +```js +//create the wave function, wrapping a fetch to a server +const wave = body => fetch('https://krgamestudios.com/pokemon', { + method: 'POST', + headers: { + 'Content-Type': 'text/plain' + }, + body: body +}); + +//get a list of pokemon names +wave('Pokemon { name }') + .then(blob => blob.text()) + .then(text => console.log(text)) + .catch(err => console.log(err)) +; +``` + ## The Schema Language The schema language is a layout of how queries should be made, as well as what can be made with them. There are two built-in keywords for the schema language: