From 5ba0786f6b352cfaa552c11e90fdd13837ac466d Mon Sep 17 00:00:00 2001 From: Kun Deng Date: Thu, 18 Jul 2019 08:46:02 -0400 Subject: [PATCH] Updated Version 1.0 API (markdown) --- Version-1.0-API.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Version-1.0-API.md b/Version-1.0-API.md index b5ff327..1cc4b05 100644 --- a/Version-1.0-API.md +++ b/Version-1.0-API.md @@ -8,8 +8,8 @@ This page contains API documentation regarding version 1.0 if the API. For the s * Album * Genres * Year -* Cover art - +* Cover art + ## Authentication ### Retrieving token **URI**: https://icarus-demo.com/api/v1/login @@ -32,6 +32,30 @@ This page contains API documentation regarding version 1.0 if the API. For the s "expiration":8000 } ``` +### Register +**URI**: https://icarus-demo.com/api/v1/register +**Method**: Post +**Content type**: application/json +**Request body**: +```Json +{ + "first_name":"Atman", + "last_name":"Heron", + "username":"ateron", + "nickname":"heron", + "password":"secret", + "email":"elysium@aaru.org", + "phone_number":"(789) 555-841" +} +``` +**Response body**: +```Json +{ + "username":"ateron", + "successfully_registered":true, + "message":"User successfully registered" +} +``` ## Songs