Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit support for curl #67

Closed
snicoll opened this issue Jan 12, 2015 · 1 comment
Closed

Explicit support for curl #67

snicoll opened this issue Jan 12, 2015 · 1 comment
Milestone

Comments

@snicoll
Copy link
Contributor

snicoll commented Jan 12, 2015

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.

@cemo
Copy link

cemo commented Jan 13, 2015

+1

snicoll added a commit to snicoll/initializr that referenced this issue Jan 19, 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.

Closes spring-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.

Closes spring-iogh-67
@snicoll snicoll modified the milestone: 0.1 Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants