-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
135b61d
commit fd9ed1d
Showing
3 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,4 +158,5 @@ | |
margin-top: -35px; | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,119 @@ | ||
/* | ||
Sevas, api pre grupy: | ||
* uzivatel musi byt prihlaseny, takze posielat basic auth alebo token | ||
Uzivatelove grupy: | ||
GET https://services.phaidra-sandbox.univie.ac.at/api/groups | ||
Result: | ||
{ | ||
"alerts": [], | ||
"groups": [ | ||
{ | ||
"created": 1443529100, | ||
"name": "xxx", | ||
"updated": 1443529100, | ||
"groupid": "2BF2E33E-66A4-11E5-A027-6E978F0EBC48" | ||
}, | ||
{ | ||
"created": 1443529100, | ||
"name": "1111", | ||
"updated": 1443529100, | ||
"groupid": "2BCB96C6-66A4-11E5-A027-6E978F0EBC48" | ||
}, | ||
{ | ||
"created": 1443529100, | ||
"name": "rasta", | ||
"updated": 1443777146, | ||
"groupid": "2BDB116E-66A4-11E5-A027-6E978F0EBC48" | ||
}, | ||
{ | ||
"created": 1443529100, | ||
"name": "ttt", | ||
"updated": 1443529100, | ||
"groupid": "2BE683AA-66A4-11E5-A027-6E978F0EBC48" | ||
} | ||
] | ||
} | ||
======================= | ||
Nacitat grupu: | ||
GET https://services.phaidra-sandbox.univie.ac.at/api/group/2BDB116E-66A4-11E5-A027-6E978F0EBC48 | ||
Result: | ||
{ | ||
"group": { | ||
"owner": "hudakr4", | ||
"_id": { | ||
"$oid": "560a818c427c9a9850000076" | ||
}, | ||
"name": "rasta", | ||
"old_groupid": "3111", | ||
"created": 1443529100, | ||
"members": [ | ||
{ | ||
"name": "Gerhard Gonter", | ||
"username": "gg" | ||
}, | ||
{ | ||
"name": "Lubica Hudakova", | ||
"username": "zelenkl7" | ||
}, | ||
{ | ||
"name": "Gerda Beidl", | ||
"username": "a4212500" | ||
} | ||
], | ||
"groupid": "2BDB116E-66A4-11E5-A027-6E978F0EBC48", | ||
"updated": 1443777146 | ||
}, | ||
"alerts": [] | ||
} | ||
======================= | ||
Pridat grupu: | ||
POST https://services.phaidra-sandbox.univie.ac.at/api/group/add | ||
param: name=xyz | ||
Result: | ||
{ | ||
"group": "C0EAC4F0-6E8A-11E5-80D9-D44E4BD7491C", | ||
"alerts": [] | ||
} | ||
======================= | ||
Zmazat grupu: | ||
POST https://services.phaidra-sandbox.univie.ac.at/api/group/<groupid>/remove | ||
======================= | ||
Pridat clenov (aj ked ty to budes asi volat po jednom): | ||
POST https://services.phaidra-sandbox.univie.ac.at/api/group/<groupid>/members/add | ||
Request (form param 'members'): | ||
{ "members": ["hudakr4","folcanm4"] } | ||
======================= | ||
Zmazat clenov (aj ked ty to budes asi volat po jednom): | ||
POST https://services.phaidra-sandbox.univie.ac.at/api/group/<groupid>/members/remove | ||
Request (form param 'members'): | ||
{ "members": ["hudakr4","folcanm4"] } | ||
-- | ||
Rastislav Hudak [email protected] | ||
Vienna University Computer Center Phone: +43-1-4277-140 84 | ||
Ebendorferstraße 10, A-1010 Wien, Austria Fax: +43-1-4277-143 38 | ||
*/ | ||
app.controller('GroupsCtrl', function($scope, $modal, $location, GroupsService, promiseTracker ) { | ||
|
||
//$scope.group_name; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters