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

[759]Create webhook #822

Merged
merged 8 commits into from
Aug 6, 2024
Merged

[759]Create webhook #822

merged 8 commits into from
Aug 6, 2024

Conversation

thinhpham-nashtech
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you refer to the implementation of other services that are using ApiClientService.ts ?

webhook/pom.xml Outdated
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.6.0.Beta1</version>
</dependency>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already defined mapstruct in parent pom.xml with version 1.4.1.Final. Why do you need another version here?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, I removed it

public static final String EVENT_URL = "/backoffice/events";

public static final String CODE_200 = "200";
public static final String OK = "Ok";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use org.springframework.http.HttpStatus instead of defining these constants

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the ApiConstant.CODE_200 is using in the value of annotation. And they don't accept the enum value like HttpStatus.OK.value()

paths:
- "webhook/**"
- ".github/workflows/actions/action.yaml"
- ".github/workflows/webhook-ci.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add - "pom.xml"

- "webhook/**"
- ".github/workflows/actions/action.yaml"
- ".github/workflows/webhook-ci.yaml"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add - "pom.xml",

ErrorVm errorVm = new ErrorVm(HttpStatus.BAD_REQUEST.toString(),
HttpStatus.BAD_REQUEST.getReasonPhrase(), e.getMessage());
return ResponseEntity.badRequest().body(errorVm);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minhtranq-nashtechglobal minhtranq-nashtechglobal linked an issue Aug 6, 2024 that may be closed by this pull request
Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

Copy link

sonarcloud bot commented Aug 6, 2024

@thiennn thiennn merged commit 7679e2b into main Aug 6, 2024
50 checks passed
@thiennn thiennn deleted the #759-create_webhook branch August 6, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create webhook
5 participants