Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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.