From 5312bdf01eb79b09477738c7ca4e16f427b2812f Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Sat, 9 Jan 2021 19:29:27 +0200 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 255349d..f9c08a1 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ Returns current user. ## API +### User + +**PUT** `/api/user/{user._id}` + +Updates a user matching the given _id. + ### Athletes **GET** `/api/athletes` @@ -47,9 +53,9 @@ Returns an array of athletes objects. Returns an athlete object for a given _id. -**GET** || **PUT** `/api/athlete/{user._id}/edit` +**PUT** `/api/athlete/{user._id}` -Edits an athlete matching the given _id. +Updates an athlete matching the given _id. **DELETE** `/api/athlete/{user._id}`