Siren Platform User Guide

Auto formatting

The console enables you to auto format messy requests. To do so, position the cursor on the request you would like to format and select Auto Indent from the action menu:

Figure 12. Auto Indent a request
Auto format before

Console will adjust the JSON body of the request and it will now look like this:

Figure 13. A formatted request
Auto format after

If you select Auto Indent on a request that is already perfectly formatted, Console will collapse the request body to a single line per document. This is very handy when working with Elasticsearch’s bulk APIs:

Figure 14. One doc per line
Auto format bulk

Search results

    No results found