Support Questions

Find answers, ask questions, and share your expertise

Possible to exclude 'descriptor' field from NiFi REST API?

avatar
Contributor

When working with the NiFi REST API and no UI is it possible to exclude the processor's config -> descriptors field from the JSON response? Simply looking to avoid the large volume of useless data during development.

1 ACCEPTED SOLUTION

avatar

Some API calls have a recursive and non-recursive attribute, but I wouldn't count on that being ubiquitous. If you're interacting with the API from a command line, I can't recommend 'jq' enough. Pipe the output of e.g. curl call into this JSON parser/query processor. It also adds syntax highlighting as an extra bonus.

View solution in original post

1 REPLY 1

avatar

Some API calls have a recursive and non-recursive attribute, but I wouldn't count on that being ubiquitous. If you're interacting with the API from a command line, I can't recommend 'jq' enough. Pipe the output of e.g. curl call into this JSON parser/query processor. It also adds syntax highlighting as an extra bonus.