hashicorp / hashicorp/nomad

[api/feature] allow returning full struct from /{jobs,allocations,evaluations}

Open
#1,825 0 comments 0 reactions 0 assignees View on GitHub
stage/needs-discussion theme/api
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Hi,

Being able to request a full struct instead of stub from the API would help make nomad-ui more powerful and simple to develop.

Having a `?full=1` or similar query argument flipping the API response from a "digest" into a full detailed response with all information directly.

e.g. `/v1/jobs?full=1` would return `/v1/job/:id` data for each job

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the API entry points for /v1/jobs, /v1/allocations, and /v1/evaluations and reading how their current digest responses are built. Define the full=1 response behavior from the issue examples, then verify that each endpoint returns the corresponding detailed records while preserving the existing default response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.