This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Advanced Features

Description of some more advanced Features of Milkman

Description of some more advanced Features of Milkman

Code Folding

  • Folding is supported in response body area
  • Toolbar actions: expand all, collapse all, expand one level, collapse one level
  • Clicking on the line-symbol expands the node
  • Right-Clicking on the line-symbol expands the whole subtree

Example of code folding

Hotkeys

  • CTRL+ENTER - Execute Request
  • CTRL+N - New Request
  • CTRL+R - Rename Active Request
  • CTRL+W - Close Active Request
  • CTRL+S - Save Active Request
  • CTRL+E - Edit current Environment
  • CTRL+Space - Quick-Edit of Variables
  • ESC - Cancel running Request

Copy&Paste in Tables

  • You can CTRL+C selected rows to copy its value
  • You can CTRL+V multiple rows into a table

Example of Copy&Paste for tables

Quick Edit for Variables

  • You can highlight variables.
  • Clicking on it opens popup for modification/creation
  • ESC hides highlighting

Example of Quick-edit for variables

Keys

  • secret keys that should not be exported or synced can be setup using the key-symbol
  • currently, secret keys are only plain type keys, but will be e.g. oauth-keys etc
  • can be accessed using {{key:name-of-key}} variable

Libraries

you can register libraries to easily look-up and import services from a central registry, such as APIs.guru.

Example of setting up and using Libraries

Code Templates

  • you can define custom templates for every type of request yourself. Do you often need to write Spring Webclient code? setup some custom template for it. (you can do so in the options dialog)
  • Some predefined templates are available already. (see here)
  • Syntax is similar to mustache but enhanced with whitespace control. example:
curl -X {{httpMethod}}  

{{_#headers.entries-}}
-H "{{name}}: {{value}}"
{{-/headers.entries_}}

{{url}}
  • Whitespace control:
    • {{- removes all whitespaces (including linebreaks) before the tag
    • {{_ removes all whitespaces (including linebreaks) before the tag and replaces it with one space
    • -}} removes all whitespaces (including linebreaks) after the tag
    • _}} removes all whitespaces (including linebreaks) after the tag and replaces it with one space

1 - Slack Integration

Slack-integration for milkman

Milkman supports slack-integration via a slackbot.

You can either host it yourself or use the heroku-hosted instance:

Add to Slack

Usage

Once added to your workspace, you can share a private-bin export url via:

/milkman <privatebin-url>

Features

It will nicely render the shared request and offers several ways for viewers to use the request, such as viewing the request as curl-command or http-request.

Preview of a request in slack

and users can choose how to view the request:

Quick-export of a request directly in slack.

it also supports all other request types, such as gRPC:

Example of a Grpc request in slack

Planned

More features are planned, such as:

  • execution of requests on backend
  • support for burn-after-reading in privatebin
  • more templates