Explicit support for curl

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 gh-67
This commit is contained in:
Stephane Nicoll
2015-01-19 17:36:11 +01:00
parent cb0c2b2e4e
commit 272db6ef7a
16 changed files with 594 additions and 44 deletions

View File

@@ -118,6 +118,7 @@ initializr:
types:
- name: Maven POM
id: maven-build
description: Generate a Maven pom.xml
sts-id: pom.xml
tags:
build: maven
@@ -126,6 +127,7 @@ initializr:
action: /pom.xml
- name: Maven Project
id: maven-project
description: Generate a Maven based project archive
sts-id: starter.zip
tags:
build: maven
@@ -134,6 +136,7 @@ initializr:
action: /starter.zip
- name: Gradle Config
id: gradle-build
description: Generate a Gradle based project archive
sts-id: build.gradle
tags:
build: gradle
@@ -142,6 +145,7 @@ initializr:
action: /build.gradle
- name: Gradle Project
id: gradle-project
description: Generate a Gradle build file
sts-id: gradle.zip
tags:
build: gradle