Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (58 sloc) 1.06 KB
{
"name": "OgTag",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"url": {
"type": "string",
"required": true,
"length": 255
},
"ogData": {
"type": "object"
}
},
"indexes": {
"OgTag_url": {
"keys": {
"url": 1
}
}
},
"mixins": {
"TimeStamp": {
"createdAt": "createdOn",
"updatedAt": "updatedOn",
"required": false,
"validateUpsert": true
}
},
"validations": [],
"relations": {},
"acls": [{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "lookup"
}, {
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "scrape"
}],
"methods": {},
"admin": {
"defaultProperty": "url",
"helpers": [{
"type": "upload",
"name": "Image",
"property": "image",
"endpoint": "/api/OgTags/:id/upload/image"
}]
}
}