1.0.1 • Published 8 years ago
sails-hook-blueprint-associations v1.0.1
sails-hook-blueprint-associations
Custom blueprint hook to get associations
Using
Install
npm install sails-hook-blueprint-associations --save
Rock
GET /:model/associations
Ex request
'GET /user/associations'
Ex response
{
"associations": [
{
"alias": "endpoints",
"type": "collection",
"collection": "endpoint",
"via": "users"
},
{
"alias": "clients",
"type": "collection",
"collection": "client",
"via": "user"
}
]
}