mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Add freemind converted.
This commit is contained in:
parent
c950e68a27
commit
8321363333
11
wise-webapp/doc/REST Services.md
Normal file
11
wise-webapp/doc/REST Services.md
Normal 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"
|
||||||
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user