GUAC-1294: Use mimetype text/plain for REST endpoints which return plain strings.

This commit is contained in:
Michael Jumper
2015-08-10 15:29:09 -07:00
parent e9dee5c064
commit 6e3fa5fe89
3 changed files with 3 additions and 0 deletions

View File

@@ -241,6 +241,7 @@ public class ConnectionRESTService {
* If an error occurs while creating the connection.
*/
@POST
@Produces(MediaType.TEXT_PLAIN)
@AuthProviderRESTExposure
public String createConnection(@QueryParam("token") String authToken,
APIConnection connection) throws GuacamoleException {

View File

@@ -193,6 +193,7 @@ public class ConnectionGroupRESTService {
* If an error occurs while creating the connection group.
*/
@POST
@Produces(MediaType.TEXT_PLAIN)
@AuthProviderRESTExposure
public String createConnectionGroup(@QueryParam("token") String authToken,
APIConnectionGroup connectionGroup) throws GuacamoleException {

View File

@@ -225,6 +225,7 @@ public class UserRESTService {
* @return The username of the newly created user.
*/
@POST
@Produces(MediaType.TEXT_PLAIN)
@AuthProviderRESTExposure
public String createUser(@QueryParam("token") String authToken, APIUser user)
throws GuacamoleException {