eliashaeussler / typo3-badges

🌍 Symfony project with SVG and JSON endpoints for beautiful TYPO3 badges
https://typo3-badges.dev
GNU General Public License v3.0
11 stars 2 forks source link

[FEATURE] Support SVG format in badge endpoints #728

Closed eliashaeussler closed 1 year ago

eliashaeussler commented 1 year ago

This PR extends all badge endpoints by the svg format. This allows to request a rendered badge through the API.

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit 34d7bb62 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 96.5% (50% is the threshold).

This pull request will bring the total coverage in the repository to 99.1% (-0.6% change).

View more on Code Climate.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 96.51% and project coverage change: -0.63 :warning:

Comparison is base (0f5e212) 99.73% compared to head (34d7bb6) 99.11%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #728 +/- ## ============================================ - Coverage 99.73% 99.11% -0.63% - Complexity 96 112 +16 ============================================ Files 21 23 +2 Lines 372 450 +78 ============================================ + Hits 371 446 +75 - Misses 1 4 +3 ``` | [Impacted Files](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler) | Coverage Ξ” | | |---|---|---| | [src/Service/BadgeService.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL1NlcnZpY2UvQmFkZ2VTZXJ2aWNlLnBocA==) | `92.30% <92.30%> (ΓΈ)` | | | [src/Badge/Provider/BadgenBadgeProvider.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0JhZGdlL1Byb3ZpZGVyL0JhZGdlbkJhZGdlUHJvdmlkZXIucGhw) | `100.00% <100.00%> (ΓΈ)` | | | [src/Badge/Provider/ShieldsBadgeProvider.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0JhZGdlL1Byb3ZpZGVyL1NoaWVsZHNCYWRnZVByb3ZpZGVyLnBocA==) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/AbstractBadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvQWJzdHJhY3RCYWRnZUNvbnRyb2xsZXIucGhw) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/DefaultBadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvRGVmYXVsdEJhZGdlQ29udHJvbGxlci5waHA=) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/DownloadsBadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvRG93bmxvYWRzQmFkZ2VDb250cm9sbGVyLnBocA==) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/ErrorController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvRXJyb3JDb250cm9sbGVyLnBocA==) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/ExtensionBadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvRXh0ZW5zaW9uQmFkZ2VDb250cm9sbGVyLnBocA==) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/StabilityBadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvU3RhYmlsaXR5QmFkZ2VDb250cm9sbGVyLnBocA==) | `100.00% <100.00%> (ΓΈ)` | | | [src/Controller/Typo3BadgeController.php](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler#diff-c3JjL0NvbnRyb2xsZXIvVHlwbzNCYWRnZUNvbnRyb2xsZXIucGhw) | `100.00% <100.00%> (ΓΈ)` | | | ... and [3 more](https://app.codecov.io/gh/eliashaeussler/typo3-badges/pull/728?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Elias+H%C3%A4u%C3%9Fler) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.