remove restaurant / changed add user
This commit is contained in:
28
README.md
28
README.md
@@ -73,6 +73,10 @@
|
||||
- ##### **password**: _String_ (required)
|
||||
- ##### **firstname**: _String_ (required)
|
||||
- ##### **lastname**: _String_ (required)
|
||||
- ##### **billing**
|
||||
- ##### **NIP**: _String_
|
||||
- ##### **adress**: _String_
|
||||
- ##### **companyName**: _String_
|
||||
- ##### **restaurants**: [*mongoose.Types.ObjectId*]
|
||||
- ##### **trialUsed**: _Boolean_
|
||||
<br>
|
||||
@@ -111,6 +115,14 @@
|
||||
|
||||
<br>
|
||||
|
||||
- ### **/restaurant/delete**
|
||||
|
||||
- #### **POST**
|
||||
|
||||
Takes a **restaurantId** parameter and a **JWT token(header)**, and tries to remove the restaurant from the database and from user. If successfull returns **200**, if failed returns error with a code.
|
||||
|
||||
<br>
|
||||
|
||||
* ### **/img**
|
||||
|
||||
- #### **POST**
|
||||
@@ -135,6 +147,22 @@
|
||||
|
||||
<br>
|
||||
|
||||
* ### **/user/forgotpassword**
|
||||
|
||||
- #### **POST**
|
||||
|
||||
Takes **email** parameter and if it exists, generates and sends an pass reset link via the email to the owner of the account.
|
||||
|
||||
<br>
|
||||
|
||||
* ### **/user/resetpass**
|
||||
|
||||
- #### **POST**
|
||||
|
||||
Takes **token, email, newPass** parameters and if everything checks out, changes user password to the supplied **newPass**.
|
||||
|
||||
<br>
|
||||
|
||||
- ### **/search**
|
||||
|
||||
- #### **GET**
|
||||
|
||||
Reference in New Issue
Block a user