You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This idea came from a brainstorming with @philwebb on #66
Since curl is sending a user-agent header we could react to that and instead of dumping the meta-data in JSON format, we could provide assistance as to how the commands can be written.
Spring boot CLI has two kind of assistance:
spring help init is a help page on the init command with a few examples and a description of the various options
spring init --list contact the server and list its capabilities. This provides namely the supported dependencies (i.e. starters) and their respective ids.
Since we need to contact the server anyway, curl start.spring.io could return a text document tailored for curl with both a usage description and the capabilities of the server.
The text was updated successfully, but these errors were encountered:
Add an explicit support for curl by returning a text description of the
service instead of the raw meta-data. curl users can still discover the
json metadata by setting the appropriate Accept header.
Closesspring-iogh-67
snicoll
added a commit
to snicoll/initializr
that referenced
this issue
Jan 20, 2015
Add an explicit support for curl by returning a text description of the
service instead of the raw meta-data. curl users can still discover the
json metadata by setting the appropriate Accept header.
Also support for explicit "text/plain" if the user requires it. In this
case a generic text description is returned.
Closesspring-iogh-67
This idea came from a brainstorming with @philwebb on #66
Since
curl
is sending auser-agent
header we could react to that and instead of dumping the meta-data in JSON format, we could provide assistance as to how the commands can be written.Spring boot CLI has two kind of assistance:
spring help init
is a help page on the init command with a few examples and a description of the various optionsspring init --list
contact the server and list its capabilities. This provides namely the supported dependencies (i.e. starters) and their respective ids.Since we need to contact the server anyway, curl start.spring.io could return a text document tailored for curl with both a usage description and the capabilities of the server.
The text was updated successfully, but these errors were encountered: