-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathorganisations.get.hl
41 lines (35 loc) · 1.06 KB
/
organisations.get.hl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Template for HTTP GET CRUD requests.
* This file was automatically generated using Magic's CRUDifier.
*/
.description:Returns items from your organisations table in your [generic|quiz_portal] database according to the specified arguments
.type:crud-read
response.headers.set
Cache-Control:public, max-age=3600
// Opening up our database connection.
data.connect:[generic|quiz_portal]
database-type:mysql
// Reading data from database.
data.read
database-type:mysql
table:organisations
join:studentdetails
as:_id
type:left
on
and
organisations._id:_id._id
columns
organisations.org_name
organisations.org_id
organisations.description
organisations.category
organisations.faculty_ad_name
organisations._id
_id.stude_name
as:_id.stude_name
_id.username
as:org_admin
limit:-1
// Returning result of above read invocation to caller.
return-nodes:x:@data.read/*