-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1072 from OneCommunityGlobal/abi-hotfix-be
ambika restoring git state to a working environment and manually merged PRs
- Loading branch information
Showing
16 changed files
with
492 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Post Badge | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ❌ Returns 200 if successfully fetch inventory data | ||
|
||
> ## Negative case | ||
3. ❌ Returns error 404 if the API does not exist | ||
4. ❌ Returns error code 403 if the user is not authorized to view the inventory data | ||
5. ❌ Returns error code 404 if an error occurs when populating or saving. | ||
|
||
> ## Edge case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Post Badge | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns 200 if successfully found data | ||
|
||
> ## Negative case | ||
1. ❌ Returns error 404 if the API does not exist | ||
2. ✅ Returns 403 if user is not authorized to view inventory data | ||
3. ✅ Returns 404 if an error occurs while fetching data | ||
|
||
> ## Edge case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Post Badge | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns status code 201, if the inventory was successfully created and saved | ||
3. ✅ Returns status code 201, if the inventory item was succesfully updated and saved. | ||
|
||
> ## Negative case | ||
1. ❌ Returns error 404 if the API does not exist | ||
2. ✅ Returns error 403 if the user is not authorized to view data | ||
3. ✅ Returns error 500 if an error occurs when saving | ||
4. ✅ Returns error 400 if a valid project was found but quantity and type id were missing | ||
|
||
> ## Edge case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.