Skip to content

Commit 205d32e

Browse files
authored
Merge pull request #422 from zhx828/add-search-box-on-top
Mention the API document in the API Access page
2 parents 1667087 + 4a85f92 commit 205d32e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/webapp/app/config/constants.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const GRID_BREAKPOINTS = {
5353
};
5454
export const SOP_LINK = 'https://sop.oncokb.org';
5555
export const FAQ_LINK = 'https://faq.oncokb.org';
56+
export const API_DOCUMENT_LINK = 'https://api.oncokb.org/oncokb-website/api';
5657
export const DEMO_WEBSITE_LINK = 'https://demo.oncokb.org';
5758

5859
export const REDIRECT_TIMEOUT_MILLISECONDS = 10000;

src/main/webapp/app/pages/APIAccessPage.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import oncokbClient from 'app/shared/api/oncokbClientInstance';
33
import { CitationText } from 'app/components/CitationText';
44
import { AuthDownloadButton } from 'app/components/authDownloadButton/AuthDownloadButton';
55
import {
6+
API_DOCUMENT_LINK,
67
DATA_RELEASES,
78
DataRelease,
89
DEFAULT_MARGIN_BOTTOM_LG,
@@ -210,6 +211,11 @@ export default class APIAccessPage extends React.Component<{
210211
https://www.oncokb.org/api/v1/genes
211212
</code>
212213
</div>
214+
<div className={'mt-2'}>
215+
Please see our detailed{' '}
216+
<Linkout link={API_DOCUMENT_LINK}>API documentation</Linkout>{' '}
217+
for more information.
218+
</div>
213219
<div className={'mt-2'}>
214220
You can also use our{' '}
215221
<Linkout link={DEMO_WEBSITE_LINK}>demo website</Linkout> which

0 commit comments

Comments
 (0)