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: Implement create and list endpoint #11

Merged
merged 3 commits into from
May 13, 2024
Merged

Conversation

mgoetzegb
Copy link
Member

@mgoetzegb mgoetzegb commented May 10, 2024

What

Implement create and list notifications endpoint. Created notifications are stored in the database and can be retrieved later via list.

Filtering and Sorting is not yet supported.

Note: The packages errs and restErrorHandler as well as the function PrepareResultSelector was duplicated from the VI backend repo. Ultimately this code should be moved to greenbone/opensight-golang-libraries.

Why

The service is supposed to do something.

References

VTI-151

Checklist

  • Tests

@mgoetzegb mgoetzegb requested review from a team as code owners May 10, 2024 16:43
@mgoetzegb mgoetzegb changed the title Implement endpoints Add: Implement create and list endpoint May 10, 2024
Copy link

Conventional Commits Report

Type Number
Bug Fixes 1

🚀 Conventional commits found.

Copy link
Member

@endyApina endyApina left a comment

Choose a reason for hiding this comment

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

LGTM, just some comments on the license headers

pkg/errs/errors.go Outdated Show resolved Hide resolved
pkg/errs/errors.go Outdated Show resolved Hide resolved
pkg/helper/helper_test.go Outdated Show resolved Hide resolved
pkg/web/cors_middleware.go Outdated Show resolved Hide resolved
pkg/web/helper/parameter_parsing.go Outdated Show resolved Hide resolved
@mgoetzegb mgoetzegb added the minor release Set label to create a minor release label May 13, 2024
- wrong column name for origin uri, should be snake case
- timestamp is mandatory
ultimately those components should be extracted to the opensight-golang-libraries
@mgoetzegb mgoetzegb merged commit b4ae8be into main May 13, 2024
10 checks passed
@mgoetzegb mgoetzegb deleted the implement-service branch May 13, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor release Set label to create a minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants