diff --git a/api-documentation.md b/api-documentation.md index 3a6f24a..201bc5a 100644 --- a/api-documentation.md +++ b/api-documentation.md @@ -43,14 +43,12 @@ A json object for the registered account with `id`, `username`, `email`, `timezo ``` { - "data": { - "id": 1, - "username": "jean", - "email": "jean@example.com", - "timezone": "Europe/Brussels", - "earliest_time":"09:30 AM", - "latest_time":"10:00 PM"l - } + "id": 1, + "username": "jean", + "email": "jean@example.com", + "timezone": "Europe/Brussels", + "earliest_time":"09:30 AM", + "latest_time":"10:00 PM" } ``` @@ -75,14 +73,12 @@ A json object for the registered account with `id`, `username`, `email`, `timezo ``` { - "data": { - "id": 1, - "username": "jean", - "email": "jean@example.com", - "timezone": "Europe/Brussels", - "earliest_time":"09:30 AM", - "latest_time":"10:00 PM"l - } + "id": 1, + "username": "jean", + "email": "jean@example.com", + "timezone": "Europe/Brussels", + "earliest_time":"09:30 AM", + "latest_time":"10:00 PM"l } ``` @@ -108,14 +104,12 @@ A json object for the registered account with `id`, `username`, `email`, `timezo ``` { - "data": { - "id": 1, - "username": "jean", - "email": "jean@example.com", - "timezone": "Europe/Brussels", - "earliest_time": "09:30 AM", - "latest_time": "10:00 PM" - } + "id": 1, + "username": "jean", + "email": "jean@example.com", + "timezone": "Europe/Brussels", + "earliest_time": "09:30 AM", + "latest_time": "10:00 PM" } ``` @@ -135,15 +129,11 @@ A json object for the account to delete with `id`. ##### Response `200` -A json object for the deleted account with `id`, `username` and `email`. +A json object for the deleted account with confirmation message. ``` { - "data": { - "id": 15, - "username": "jean", - "email": "jean@example.com" - } + "message": "Account with id 15 successfully deleted." } ``` @@ -166,24 +156,23 @@ A json object with an `account_id`. A json object for the specified account with an array of `meeting`. ``` -{ - "data": [{ - "id": "f86983db-955e-43b8-be3e-bc92bbeb9b43", - "title": "Worldwide strategy meeting for growth", - "description": "Let's find the best ethical growth hacking technics together. Yeah, fun.", - "start_time": "2022-02-16 20:00:00", - "timezone": "Europe/Brussels", - "duration": 60, - "status": 1 - }, - { - "id": "follow-up-with-tech-team-21850", - "title": "Follow up with tech team", - "duration": 120, - "status": 0 - } - ] -} +[{ + "id": "f86983db-955e-43b8-be3e-bc92bbeb9b43", + "title": "Worldwide strategy meeting for growth", + "description": "Let's find the best ethical growth hacking technics together. Yeah, fun.", + "start_time": "2022-02-16 20:00:00", + "timezone": "Europe/Brussels", + "duration": 60, + "status": 1 + }, + { + "id": "follow-up-with-tech-team-21850", + "title": "Follow up with tech team", + "duration": 120, + "status": 0 + } +] + ``` ### **Meetings** | `meeting`