Skip to content

Add recipe metrics endpoint #1150

Open
Open

Description

@dgee2

Goal

Expose a recipe metrics endpoint so owners and admins can see engagement data.

Spec reference

docs/specs/recipe-creation-target-architecture.md — §"Authenticated recipe endpoints"

Implementation notes

  • GET /api/recipe/{recipeId}/metrics — returns RecipeMetricsSnapshot DTO
  • Accessible only to the recipe owner or a user with recipe:publish permission (admin)
  • 403 for other authenticated users; 404 if recipe not found

Acceptance criteria

  • Owner can retrieve metrics
  • Admin can retrieve metrics
  • Non-owner, non-admin returns 403

Testing

  • Integration tests: owner access, admin access, non-owner 403

Part of#1106

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions