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

Changes related to error status 400 and updates to deletion of visa #710

Merged
merged 4 commits into from
Jun 6, 2023

Conversation

Azher2Ali
Copy link
Contributor

As mentioned in the earlier ticker #708 ,The issues related to API's returning HTTP 400 error status has now been fixed. With the recent changes, if any user does not authenticated with valid jwt the error code returns back as HTTP 401 (Unauthorized) with a error status {
"error": "Unauthorized",
"message": "Required request header 'Authorization' for method parameter type String is not present",
"timestamp": "2023-06-01T16:00:02.624+0000",
"path": "/visa"
}

Steps to reproduce:

  1. Go to 'http://localhost:8081/swagger-ui/index.html#/Visa/deleteVisa'
  2. Do not provide any api key in "Authorize" tab.
  3. Test any api within ego
  4. Response returned is HTTP 400 Bad Request

Below is the ss, displaying the error status
Screenshot 2023-06-01 at 1 20 09 PM

The second change is regarding the updates to deletion of visa. Earlier, there was an option to delete the Visa with using VisaId as a parameter. Now, as we are no longer using the VisaId to fetch or update. Therefore, "type" and "value" can be used to delete the Visa now.

@Azher2Ali Azher2Ali requested a review from leoraba June 6, 2023 18:10
@Azher2Ali Azher2Ali merged commit 85cd6c7 into feature/develop-passport Jun 6, 2023
@Azher2Ali Azher2Ali deleted the feature/passportVisa branch June 6, 2023 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants