Skip to content

Commit

Permalink
test 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainperl committed Nov 10, 2015
1 parent 135b61d commit fd9ed1d
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,5 @@
margin-top: -35px;
}



116 changes: 116 additions & 0 deletions public/js/controllers/groups.js
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;
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/massedit/massedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ var MEAddRecordModalCtrl = function ($scope, $modal, $modalInstance, FrontendSer


}

var METemplateDeleteModalCtrl = function ($scope, $rootScope, $modalInstance, FrontendService, promiseTracker, Massedit) {

$scope.massedit = Massedit;
Expand Down

0 comments on commit fd9ed1d

Please sign in to comment.