mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Merge pull request #239 from glyptodon/fix-mimetypes
GUAC-1294: Use mimetype text/plain for REST endpoints which return plain strings.
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user