Add freemind converted.

This commit is contained in:
Paulo Gustavo Veiga 2012-09-08 12:01:26 -03:00
parent c950e68a27
commit 8321363333
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,11 @@
REST Services
---------------
Obtaining user information by email:
curl "http://localhost:8080/service/admin/users/email/{user.email}.json" --get --basic -u "admin@wisemapping.org:admin"
Deleting a based on the user id:
curl "http://localhost:8080/service/admin/users/{userId}" --request delete --basic -u "admin@wisemapping.org:admin"

View File

@ -23,12 +23,15 @@ public class DebugMappingJacksonHttpMessageConverter extends MappingJacksonHttpM
} catch (org.springframework.http.converter.HttpMessageNotReadableException e) { } catch (org.springframework.http.converter.HttpMessageNotReadableException e) {
throw new HttpMessageNotReadableException("Request Body:\n" + new String(bytes, "UTF-8"), e); throw new HttpMessageNotReadableException("Request Body:\n" + new String(bytes, "UTF-8"), e);
} }
catch (IOException e) {
throw new HttpMessageNotReadableException("Request Body:\n" + new String(bytes, "UTF-8"), e);
}
} }
} }
class HttpMessageNotReadableException extends org.springframework.http.converter.HttpMessageNotReadableException { class HttpMessageNotReadableException extends org.springframework.http.converter.HttpMessageNotReadableException {
public HttpMessageNotReadableException(String msg, org.springframework.http.converter.HttpMessageNotReadableException cause) { public HttpMessageNotReadableException(String msg, Exception cause) {
super(msg, cause); super(msg, cause);
} }
} }

View File

@ -17,6 +17,7 @@ public class RestMvcConfiguration extends WebMvcConfigurerAdapter {
@Override @Override
public void configureMessageConverters(@NotNull final List<HttpMessageConverter<?>> converters) { public void configureMessageConverters(@NotNull final List<HttpMessageConverter<?>> converters) {
converters.add(converter()); converters.add(converter());
configureMessageConverters(converters);
} }
@Bean @Bean