use jax rs instead of wicket for rest api

This commit is contained in:
Athou
2013-03-23 15:52:26 +01:00
parent e2b639678c
commit b94085991d
15 changed files with 204 additions and 130 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<filter>
<filter-name>Wicket</filter-name>

View File

@@ -7,7 +7,7 @@ module.factory('CategoryService', [ '$resource', '$http',
method : 'GET'
}
}
res = $resource('subscriptions', {}, actions);
res = $resource('rest/subscriptions', {}, actions);
return res
} ]);
@@ -17,12 +17,10 @@ module.factory('EntryService', [ '$resource', '$http',
'getUnread' : {
method : 'GET',
params : {
_type : 'category',
_id : '1',
_readtype : 'unread',
_method : 'get'
}
}
}
res = $resource('entries/:_type/:_id/:_readtype', {}, actions);
res = $resource('rest/entries/:_method/:_type/:_id/:_readtype', {}, actions);
return res
} ]);