generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test query and subscribe ability to read data of records
- Loading branch information
1 parent
d7a6958
commit 0a53308
Showing
4 changed files
with
202 additions
and
120 deletions.
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
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
48 changes: 48 additions & 0 deletions
48
packages/api/tests/fixtures/protocol-definitions/notes.json
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"protocol": "http://notes-protocol.xyz", | ||
"published": true, | ||
"types": { | ||
"note": { | ||
"schema": "http://notes-protocol.xyz/schema/note", | ||
"dataFormats": [ | ||
"text/plain", | ||
"application/json" | ||
] | ||
}, | ||
"comment": { | ||
"schema": "http://notes-protocol.xyz/schema/comment", | ||
"dataFormats": [ | ||
"text/plain", | ||
"application/json" | ||
] | ||
}, | ||
"friend" : { | ||
"schema": "http://notes-protocol.xyz/schema/friend", | ||
"dataFormats": [ | ||
"text/plain", | ||
"application/json" | ||
] | ||
} | ||
}, | ||
"structure": { | ||
"friend" :{ | ||
"$role": true | ||
}, | ||
"note": { | ||
"$actions": [ | ||
{ | ||
"role": "friend", | ||
"can": ["read", "query", "subscribe"] | ||
} | ||
], | ||
"comment": { | ||
"$actions": [ | ||
{ | ||
"role": "friend", | ||
"can": ["create", "delete", "read", "query", "subscribe"] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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