Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Exception Handler, and add APIs #9

Open
picksitquick opened this issue Sep 2, 2023 · 0 comments
Open

Add Exception Handler, and add APIs #9

picksitquick opened this issue Sep 2, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@picksitquick
Copy link
Contributor

picksitquick commented Sep 2, 2023

Describe the bug
Prerequisite:

  • Error Handling in Spring Boot.
  • API Calls.

This Task contains 2 sub task:

(1) Add Exception Handler: please refer to the existing exception directory in order to understand how to make custom exception handler classes.

  • Make exception handler for HTTP status codes: 400 and 500, and add/throw them wherever necessary in the API calls for Studios.

(2) Make API calls:

  • Add API path /studios/users/{lastName} and /studios/users/{phoneNumber} in Studio Controller.

Expected behavior

  • API calls should exactly return the data that is expected.
  • For example: /users/skill/1 should return user with skill Id 1.
  • Custom Error response should be displayed when respective error scenario comes up.
  • Test your error handler by passing invalid inputs.

Creating a New Branch
Make sure to create a new branch, use the naming convention: "your_git_username/exceptions"

Reference
You can view the Exception and Controller classes created in user-services repository to get reference/setup.

Raise a PR
Once the task is completed, make sure to raise a PR so that we can view your changes.

Due Date
10th Sept 2023
Deadline extended:
16th Sept 2023

@picksitquick picksitquick added enhancement New feature or request good first issue Good for newcomers labels Sep 2, 2023
@Anan36 Anan36 assigned Anan36 and unassigned eKeiran Sep 9, 2023
@picksitquick picksitquick assigned picksitquick and unassigned Anan36 Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants