Skip to content
Snippets Groups Projects
Commit 3bdb39bd authored by Tim Bastin's avatar Tim Bastin :lemon:
Browse files

Merge branch 'main' into 'mit-license'

# Conflicts:
#   README.md
parents 51b40e21 319ed2ac
No related branches found
No related tags found
No related merge requests found
<!--
Copyright 2025 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH.
SPDX-License-Identifier: MIT
-->
# Badge API Documentation
\ No newline at end of file
## Development
In case you want to run the "API Live Demo" against your local [Badge API](https://gitlab.opencode.de/open-code/badgebackend/badge-api) you can run the following command:
```bash
npm i
NEXT_PUBLIC_API_BASE_URL=http://localhost:8080/api/v1 npm run dev
```
\ No newline at end of file
......@@ -5,6 +5,7 @@ import Image from 'next/image'
import { SarifApiResponse } from '../lib/apiClient'
import { cn } from '../lib/utils'
import ResultTable from './ResultTable'
import { config } from '../config'
interface Props {
currentScan: SarifApiResponse | null
......@@ -58,7 +59,12 @@ export default function ResultGrid({ currentScan }: Props) {
!badge.badgeGranted &&
'opacity-50',
)}
src={badge.badgeUrl}
src={
config.API_BASE_URL.replace(
'/api/v1',
'',
) + badge.badgeUrl
}
fill
alt={badge.badgeId}
/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.