File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
plugins/gatsby-theme-flow/src/components Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import HTTPAPI from " ../plugins/gatsby-theme-flow/src/components/http-api" ;
2
2
3
3
4
- <HTTPAPI />
4
+ <HTTPAPI specUrl = " https://raw.githubusercontent.com/onflow/flow/master/openapi/access.yaml"
5
+ />
Original file line number Diff line number Diff line change @@ -25,15 +25,14 @@ import {
25
25
26
26
27
27
<h3 > ⚡️
28
-
29
28
<TrackingLink href = " /http-api/" eventName = " Homepage_link_/http-api/_clicked" >
30
29
Flow Access Node HTTP API
31
30
</TrackingLink >
32
31
</h3 >
33
32
34
33
<ul className = " grid-item-list" >
35
34
<li >
36
-
35
+
37
36
The Flow access node API for REST clients. Usable with the <TrackingLink href = " https://github.com/onflow/flow-emulator#configuration
38
37
" eventName = " Homepage_link_/flow-cli/_clicked" >
39
38
Flow CLI (Emulator)
@@ -44,7 +43,7 @@ import {
44
43
" eventName = " Homepage_link_/fcl/_clicked" >
45
44
FCL (Flow Client Library)
46
45
</TrackingLink >
47
-
46
+ < br />
48
47
<span >https://rest-testnet.onflow.org/v1/ </span >
49
48
<p >Testnet: <TrackingLink event = " Homepage*link*/http-api-testnet/\_clicked" href = " /http-api/" >View Documentation</TrackingLink ></p >
50
49
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { RedocStandalone } from "redoc";
3
3
4
4
import CustomSEO from "./custom-seo" ;
5
5
6
- export default function AccessNodeHTTPAPI ( props ) {
6
+ export default function AccessNodeHTTPAPI ( { specUrl } ) {
7
7
return (
8
8
< >
9
9
< CustomSEO
@@ -23,7 +23,7 @@ export default function AccessNodeHTTPAPI(props) {
23
23
scrollYOffset : 101 ,
24
24
nativeScrollbars : true
25
25
} }
26
- specUrl = "https://raw.githubusercontent.com/onflow/flow/master/openapi/access.yaml"
26
+ specUrl = { specUrl }
27
27
/>
28
28
</ div >
29
29
</ >
You can’t perform that action at this time.
0 commit comments