Skip to content

Create route /features/uuid/phase/uuid/tickets #1982

Description

@humansinstitute

This endpoint will be used to return the full list of ticket UUIDS for a given feature and phase uuid.

Add a route to features.go at /features/uuid/phase/uuid/tickets

	r.Get("/{uuid}/phase/{uuid}/tickets", featureHandlers.GetTickets)

Context

We need to create a new endpoint that returns all ticket UUIDs associated with a specific feature and phase. This endpoint will be used to fetch the complete list of tickets for a given phase within a feature.

Task

Add a new route to features.go that handles GET requests for retrieving all tickets associated with a feature and phase UUID combination.

Outcome

A functioning route that accepts feature UUID and phase UUID parameters and returns the associated ticket UUIDs.

Design

Route Definition

In features.go:

func RegisterFeatureRoutes(r chi.Router) {
    // Existing routes...
    
    // New route for getting phase tickets
    r.Get("/{featureUUID}/phase/{phaseUUID}/tickets", featureHandlers.GetTickets)
}

Acceptance Criteria

  • Route /features/{featureUUID}/phase/{phaseUUID}/tickets is registered
  • Route is accessible via GET method
  • Route parameters are properly defined:
    • featureUUID: Feature identifier
    • phaseUUID: Phase identifier
  • Route is mapped to the correct handler function
  • Route follows existing project patterns for URL structure

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions