From 81a5d80b2c7861a2a616ec01ee14cbc4baaccc22 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 21 Jan 2015 08:35:03 +0100 Subject: [PATCH] Update README with recent command-line improvements --- README.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 6aaeb5f7..e51f748c 100644 --- a/README.adoc +++ b/README.adoc @@ -38,7 +38,7 @@ You could achieve the same result with a simple `curl` command [source,bash] ---- -$ curl https://start.spring.io/starter.zip >> demo.zip +$ curl https://start.spring.io/starter.zip -o demo.zip ---- The following request attributes are supported: @@ -88,9 +88,12 @@ third-party clients. You can grab the meta-data by _curling_ the root [source,bash] ---- -$ curl https://start.spring.io +$ curl -H 'Accept: application/json' https://start.spring.io ---- +NOTE: If you use `curl` without an accept header, you'll retrieve a human readable text version +of the metadata. `HTTPie` is also supported. + The meta-data basically lists the _capabilities_ of the service, that is the available options for all request parameters (`dependencies`, `type`, `bootVersion`, etc.) The web UI uses that information to initialize the select options and the tree of available dependencies.