From f8e2593299abb9fb052ddc9dca39da32b7117041 Mon Sep 17 00:00:00 2001 From: Filip Bucek Date: Mon, 30 Sep 2019 18:14:14 +0200 Subject: [PATCH] working snowboard API --- README.md | 9 +++++++++ colnod.apib | 9 ++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5f6c816..07bf64f 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,19 @@ curl -k --user "spaceti:E7FEA07DBC82FB9BA34B2E453E2EFE89F0583E7187543507EF11E847 ### Snowboard +#### Necesarry to allow + +- Self signed certificate: [Stack overflow](https://superuser.com/a/1235250) +- Enable CORS: + - Safari: Develop->Disable cross origin restrictions + `snowboard http -c snowboard.yml --playground colnod.apib` [Colnod API snowboard documentation](http://localhost:8088) + + + #### Install snowboard `npm install -g snowboard` diff --git a/colnod.apib b/colnod.apib index e818665..a5e59a8 100644 --- a/colnod.apib +++ b/colnod.apib @@ -8,11 +8,6 @@ and response body content. # Notes [/AaaManager/authSession] -+ Body - - + username: spaceti (required) - User identifier - + password: E7FEA07DBC82FB9BA34B2E453E2EFE89F0583E7187543507EF11E84726071FE428445372F2E46B455EB0C79747C51E362F403CE39473A2A8C2DFA0CE5C9826C0 (required) - sha512 password - ## Get a note [POST] Gets a single note by its unique identifier. @@ -21,8 +16,8 @@ Gets a single note by its unique identifier. + Body { - "user": "String", - "password": "String ", + "password": "E7FEA07DBC82FB9BA34B2E453E2EFE89F0583E7187543507EF11E84726071FE428445372F2E46B455EB0C79747C51E362F403CE39473A2A8C2DFA0CE5C9826C0", + "username": "spaceti" } + Schema