API endpoint for showing a formatted job plan
Open
stage/needs-discussion
theme/api
theme/jobspec
type/enhancement
- Dominant language
- Go
- Stars
- 17k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 105
Description
It would be helpful if there was a way to easily get the formatted output of a plan through the API, similar to the way the CLI shows it.
For example:
```
+/- Job: "httpbin"
+/- Meta[uuid]: "7e6273bf-f549-4356-8396-dd61024ea13e" => "04d109b8-96a2-4bb3-9ec8-e4f9ca782a16"
Task Group: "app" (1 canary, 1 ignore)
Task: "httpbin"
```
My current solution is to parse the [Diff](https://www.nomadproject.io/api-docs/jobs/#diff) section of a plan through the API, but it's tricky to parse and not very pretty :joy:
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.