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

Cleanup Products API v2 endpoints #224

Closed
wants to merge 3 commits into from

Conversation

jonasanker
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2023

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (a5c0c45) 7.90% compared to head (7a6e598) 7.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##           develop    #224      +/-   ##
==========================================
- Coverage     7.90%   7.90%   -0.01%     
==========================================
  Files          163     163              
  Lines        10129   10135       +6     
  Branches       461     461              
==========================================
  Hits           801     801              
- Misses        9310    9316       +6     
  Partials        18      18              
Files Coverage Δ
...ataTransferObjects/v2/Product/AddProductRequest.cs 0.00% <ø> (ø)
...TransferObjects/v2/Product/UpdateProductRequest.cs 0.00% <ø> (ø)
...ansferObjects/v2/Products/SimpleProductResponse.cs 0.00% <ø> (ø)
...nsferObjects/v2/Product/DetailedProductResponse.cs 0.00% <0.00%> (ø)
...eeCard.WebApi/Controllers/v2/ProductsController.cs 0.00% <0.00%> (ø)
...d/CoffeeCard.Library/Services/v2/ProductService.cs 15.90% <0.00%> (-0.37%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghost
Copy link

ghost commented Nov 12, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@jonasanker
Copy link
Member Author

jonasanker commented Nov 12, 2023

@TTA777, @HubertWojcik10 There were some changes in #215 which I think should be cleaned up thus I have created this PR with these changes. I'm tagging you so you can review them and catch them next time :)
Some of them are possibly opinionated but thougt they were easier to discuss from an example

Highlights

  • Example should have no space in them
  • Example should use camelCase as this is how our API formats objects
  • Patch/Put endpoints should have a path parameter /{id} per REST conventions
  • Opinionated: Post/Creational endpoint should include the id in the response and return a 201

Copy link

sonarcloud bot commented Nov 12, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Base automatically changed from develop to main December 7, 2023 18:17
@TTA777
Copy link
Member

TTA777 commented Jan 25, 2024

@jonasanker This has grown quite stale. Is it still something that needs doing, or has it been addressed in separate prs?

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.

3 participants