From c682c935b96e4dd7d66fbb3162db128bc78d0ddc Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 3 Jul 2022 21:20:54 +0200 Subject: [PATCH] rename variable --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index cdc51fb0..759eda25 100644 --- a/docs/api.md +++ b/docs/api.md @@ -20,7 +20,7 @@ JSON Response: "status": 200, "data": { "id": 1, - "email": "user@example.org", + "mail": "user@example.org", "username": "user", "token": "" } @@ -36,13 +36,13 @@ From here on all request **must** contain the authorization header:\ Get current user, response is in JSON format - **PUT** `/api/user/{user id}`\ -JSON Data: `{"email": "", "password": ""}` +JSON Data: `{"mail": "", "password": ""}` - **POST** `/api/user/`\ JSON Data: ```JSON { - "email": "", + "mail": "", "username": "", "password": "", "role_id": 1