Skip to content

Commit 72257b9

Browse files
authored
Merge pull request #55 from genestack/bugfix/caption-QuickStart-API
Captions have been added
2 parents 6d0b112 + 1cc4ab3 commit 72257b9

File tree

8 files changed

+138
-55
lines changed

8 files changed

+138
-55
lines changed

docs/release-notes/v1.50-v1.59.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ Please review the documentation, as these changes may impact your integrations.
527527
1. **Tabular Data Endpoint Changes**
528528

529529
??? abstract "Introduced changes to Tabular Data"
530+
530531
| Introduced change | Changes Description |
531532
|:----------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
532533
| Deprecating old response format | The old response format for tabular data will be deprecated. The **"multi_value"** response format (introduced in July 2023) will be the default option. It allows retrieval of data with one or more features and suits any type of tabular data, including **.gct** files. |
@@ -536,6 +537,7 @@ Please review the documentation, as these changes may impact your integrations.
536537
![RN](1.58/1-58-2.png)
537538

538539
??? danger "Affected endpoints (for both as-curator and as-users)"
540+
539541
| Endpoint Group | Endpoints Affected |
540542
|:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------|
541543
| expressionUser | GET `/api/v1/as-user/expressions` GET `/api/v1/as-user/expressions/{id}` |
@@ -546,14 +548,17 @@ Please review the documentation, as these changes may impact your integrations.
546548
2. **Variants Endpoint Changes**
547549

548550
??? abstract "Introduced changes to Variants"
551+
549552
| Introduced change | Changes Description |
550553
|:----------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
551554
| Introducing **“variant”** section | A new section **“variant”** contains all fields related to a specific variation from the original VCF file: CHROM, POS, ID, REF, ALT, QUAL, FILTER, INFO. |
552555

553556
??? example "Response example"
554557
![RN](1.58/1-58-3.png)
555558

559+
556560
??? danger "Affected endpoints (for both as-curator and as-users)"
561+
557562
| Endpoint Group | Endpoints Affected |
558563
|:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------|
559564
| variantUser | GET `/api/v1/as-user/variants` GET `/api/v1/as-user/variants/{id}` |
@@ -564,6 +569,7 @@ Please review the documentation, as these changes may impact your integrations.
564569
3. **Flow Cytometry Endpoint Changes**
565570

566571
??? abstract "Introduced changes to Flow Cytometry"
572+
567573
| Introduced change | Changes Description |
568574
|:----------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
569575
| Introducing **“feature”** and **“value”** sections | Flow-cytometry data response now has section **“feature”** including **"readoutType"**, **"cellPopulation"** and **"marker"** fields. **“Value”** section contains the expression field which is renamed to **“value”**.|
@@ -573,6 +579,7 @@ Please review the documentation, as these changes may impact your integrations.
573579
![RN](1.58/1-58-4.png)
574580

575581
??? danger "Affected endpoints (for both as-curator and as-users)"
582+
576583
| Endpoint Group | Endpoints Affected |
577584
|:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------|
578585
| flowCytometryUser | GET `/api/v1/as-user/flow-cytometries` GET `/api/v1/as-user/flow-cytometries/{id}` |

docs/user-guide/quick-start/admin-api.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Follow these steps to get started on using the ODM’s API Endpoints :
2121
* Navigate to the ODM homepage.
2222
* Click on **API Documentation** on the homepage.
2323
![Enter API](quick-start-images/consumer-api-dashboard.png)
24+
<figcaption>Main dashboard of the ODM. Click on API documentation to explore the available resources</figcaption>
2425

2526
2. **Explore the API Documentation**
2627
* This action will display the API Documentation window, where you can explore how the data model in ODM is structured.
@@ -49,6 +50,7 @@ Follow these steps to use Swagger effectively, based on your role and permission
4950
3. **Accessing Endpoints:** Use the top right button to select specific functions. For example,
5051
the `studyUser` definition contains API endpoints specifically for retrieving study metadata.
5152
![Swagger](quick-start-images/swagger-groups.png)
53+
<figcaption>Swagger page interface. You can access the endpoints by selecting specific functions on the button on the top right, e.g., the definition <strong>studyUser</strong> contains the API endpoints for retrieving only study metadata</figcaption>
5254

5355
### API token
5456

@@ -70,20 +72,23 @@ An access token is required to work with the API endpoints. Follow these steps t
7072
* Save the token in an easily accessible location for future use.
7173

7274
![Generate token](quick-start-images/generate-token.png)
75+
<figcaption>Steps to create a new API token: 1) Access your profile window, 2) click on Create new token, and a link will be sent to your email address (the user who is logged in). 3) Access the link, 4) assign a name to the token and 5) download the plain text format file</figcaption>
7376

7477
### Authorize with the Token
7578
1. Once the token is generated, you need to authorize the use of the endpoints.
7679
2. Direct to the endpoint of interest depending on the action to run (retrieve data, stream data, upload entities, etc.)
7780
3. Click on **Authorize**, select the type of token (Access Token or Genestack API token),
7881
and navigate to the specific endpoint.
7982
![Authorize access](quick-start-images/authorize-access.png)
83+
<figcaption>Use your token to authorize access to the endpoints</figcaption>
8084

8185
4. Click on **Try it out** to activate it. The **Try it out** step is required for every single endpoint.
8286
![Try it out](quick-start-images/try-it-out.png)
87+
<figcaption>Once the token has been added, select the Endpoint of interest and click on <strong>Try it out</strong> to activate it</figcaption>
8388

8489
## Use Case Example: Find detached data in ODM
8590

86-
**Endpoint**: GET `/api/v1/manage-data/detached-objects`
91+
**Endpoint**: `GET /api/v1/manage-data/detached-objects`
8792

8893
!!! Warning ""Manage organisation" and "Access all data" permissions are required for working with detached objects."
8994

@@ -92,42 +97,49 @@ as a "study." A study itself is classified as detached if it has no links to low
9297

9398
1. To locate orphaned data (detached objects), you can use the "Retrieve a list of detached objects" endpoint.
9499
![Use Case 17](quick-start-images/admin-api-uc-20.png)
100+
<figcaption>Use the endpoint {==/api/v1/manage-data/detached-objects==} to find detached data</figcaption>
95101

96102
2. You can apply filters to specify the type of data you wish to retrieve and limit the number of results displayed
97103
(up to 2,000). If no filters are applied, the endpoint will return a list of all available detached objects.
98104
In the example below, the results are limited to the first 5 available objects.
99105
![Use Case 17](quick-start-images/admin-api-uc-21.png)
106+
<figcaption>Apply filters to limit the number of results</figcaption>
100107

101108
3. The results display the first 5 detached objects in the system, including detailed information for each object,
102109
such as the Genestack accession number, the type of detached object, the owner's email, and the date of creation.
103110
The "cursor" at the end indicates the last object retrieved from the list, which allows you to continue the
104111
search from where it left off.
105112
![Use Case 17](quick-start-images/admin-api-uc-22.png)
113+
<figcaption>Response from the previous query. The window shows the number of results, the accession number. The last value "cursor" indicates the last retrieved object</figcaption>
106114

107115
4. You can apply filters to search for specific types of detached objects,
108116
such as `STUDY`, `SAMPLE_GROUP`, `LIBRARY_GROUP`, `PREPARATION_GROUP`, `TABULAR_DATA`, `GENE_VARIANT`, and
109117
`FLOW_CYTOMETRY`. For instance, you can filter by LIBRARY_GROUP to retrieve the first 10 detached library group objects.
110118
![Use Case 17](quick-start-images/admin-api-uc-23.png)
119+
<figcaption>Apply filter to customize the search for specific data, such as <cursor>Library Group</cursor></figcaption>
111120

112121
Identifying detached objects can help you recognize data that may no longer be relevant in the system.
113122
You can use the Genestack accession number to delete data that is no longer required. For more information on
114-
deleting data, refer to the next section "Delete Data in ODM".
123+
deleting data, refer to the next section **Delete Data in ODM**.
115124

116125
## Use Case Example: Delete data in ODM
117126

118127
**Endpoint:** DELETE `/api/v1/manage-data/data`
119128
!!! warning "The deletion of data is an irreversible action and it is only available for users with "Manage organization" and "Access all data" permissions."
120129

121-
1. To delete a data object or a data group, use the `/api/v1/manage-data/data` endpoint
122-
![Use Case 17](quick-start-images/admin-api-uc-17.png)
130+
1. To delete a data object or a data group, use the `DELETE /api/v1/manage-data/data` endpoint
131+
![Use Case 17](quick-start-images/admin-api-uc-17.png)
132+
<figcaption>Use the endpoint {==DELETE /api/v1/manage-data/data==} to delete data from ODM</figcaption>
123133

124134
2. Enter the data object or the data group accession of the data you intend to delete.
125135
For this example, we will delete the study GSF1147012, named “Demo version 2”.
126-
![Use Case 18](quick-start-images/admin-api-uc-18.png)
136+
![Use Case 18](quick-start-images/admin-api-uc-18.png)
137+
<figcaption>Use the endpoint {==/api/v1/manage-data/data==} to delete specific data. For example, to remove the study <strong>Demo version 2</strong>, add the ID details (GSF1147012) and click on <strong>Execute</strong></figcaption>
127138

128139
3. The response indicates that the deletion of the following files and all linked data has been started.
129140
You can verify the deletion by checking the Groups section in the
130141
ODM interface; the "Demo version 2" group should no longer be listed.
131142
![Use Case 19](quick-start-images/admin-api-uc-19.png)
143+
<figcaption>The 202 response indicates that the request to remove the study <strong>Demo version 2</strong> (ID GSF1147012) has been successfully initiated. You can confirm the completion of this operation by logging into ODM and searching for the specific study.</figcaption>
132144

133-
By following these steps, Data Administrators can efficiently manage users and groups within the ODM using the API.
145+
By following these steps, Data Administrators can efficiently manage users and groups within the **ODM** using the API endpoints.

0 commit comments

Comments
 (0)