Skip to content

Add the QR code endpoint (GET /assets/:id/qr) and printable label support #1595

Closed

Description

@yusuftomilola

Problem

The asset detail page fetches /api/assets/${id}/qr to show and print a QR code, but the backend has no such route, and qrcode / bwip-js are installed yet unused. The page silently shows no QR code.

Proposed change

Add GET /assets/:id/qr (PNG/SVG, with format and size query options) encoding the public scan URL, and a label endpoint that can render a barcode (bwip-js) with the asset tag.

Acceptance criteria

  • Authenticated request returns an image with correct Content-Type.
  • Unknown asset returns 404; test covers both.

Activity

  1. TomikeDS commented on Oct 16, 2026

    @TomikeDS
    Contributor

    @TomikeDS has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I'd like to pick this issue up.

    I'm a software engineer with strong experience in JavaScript and building scalable web applications. I'm comfortable working across the stack, writing clean, maintainable code, and collaborating in open source environments.

    I've gone through the details of this issue and I'm confident I can deliver a clean, well-tested solution that fits the codebase.

    Looking forward to contributing — please assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @TomikeDS to this issue.

  2. Willybe0 commented on Oct 16, 2026

    @Willybe0

    @Willybe0 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I've gone through the description and acceptance criteria. I'm confident I can handle this and submit a clean PR.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Willybe0 to this issue.

  3. VeronicDev commented on Oct 16, 2026

    @VeronicDev

    @VeronicDev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello Maintainer, I can fix this please assign.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @VeronicDev to this issue.

  4. drips-wave commented on Oct 16, 2026

    @drips-wave

    Congratulations, @TomikeDS! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @TomikeDS: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  5. grantfox-oss commented on Oct 17, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @TomikeDS's PR #1676 was approved and merged by @yusuftomilola.

    🏆 @TomikeDS: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,948 total points). Track your full progress on GrantFox.

    👏 Great work, @TomikeDS! Keep contributing to DistinctCodes.

  6. drips-wave commented on Oct 17, 2026

    @drips-wave

    This issue has been completed by @TomikeDS as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @TomikeDS: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions