Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
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
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
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:
Acceptance Criteria
/features/{featureUUID}/phase/{phaseUUID}/tickets
is registeredfeatureUUID
: Feature identifierphaseUUID
: Phase identifier