Questions tagged [angularjs-restmod]
3 questions
1
vote
1 answer
How do I customize the url path of a sub resource in angular-restmod
I have the following setup
angular.module('xyz').factory('Bike', function (restmod) {
return restmod.model('/bikes').mix({
BikeParts: { hasMany: "BikeParts" },
$extend: {
Record: {
savePart: function…

Paul
- 7,836
- 2
- 41
- 48
0
votes
1 answer
On hitting Rest service getting Error - Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header
I am trying to hit the rest service through Angular $http service, I am getting error like
XMLHttpRequest cannot load
http://localhost:3000/SpringSecurity/utn/accounts/all. Response to
preflight request doesn't pass access control check: No…
user5063991
0
votes
2 answers
How do I call a custom get method
I'm listing users with:
/api/users/
I'd like to list users who are admins by calling:
/api/users/admins
As trivial as it may seem, I can't find a way to do this.

gkpo
- 2,623
- 2
- 28
- 47