Name |
List Schema Names by Org and Group Name |
Description |
As an user (PI or not) of the BC network, I want to list all the Schemas names associated to the group I belong to, so that I can later check them out. |
Acceptance Criteria |
|
1. |
* The user gets authenticated to the network, under an specific org. |
2. |
* The user sends out an invocation through the Org's API, to list all the Schemas Names created for their specific Org. |
3. |
* The user may provide a group name or not. That is entirely optional. |
4. |
* The group name can be empty. If it is, return a list of this form: [{'Schema Text': SCHEMA_TEXT_1, 'Group': 'Group_A', 'Schema Version': '1.0'}, {'Schema Text': SCHEMA_TEXT_2, 'Group': 'Group_A', 'Schema Version': '1.1'}, ...]. All the schema names submitted on behalf of the org, and the group name associated to them need to be retrieved for the user. |
5. |
* If the user provide a single group name, the app retrieves only the schema names associated to said group within the org in the same way showed above. The user doesn't need to be part of that group. If the group name doesn't exist, the code should retrieve a message like: {'msg': 'We couldn't find any Schema Names. Please try a different group name'}, because it won't find any schema. |
7. |
* If the app can't find any schema, return a message like: {'msg': 'We couldn't find any Schema Names. Please try a different group name'} |