File tree 3 files changed +726
-0
lines changed
3 files changed +726
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ export default {
78
78
name : 'React SDK' ,
79
79
external : true ,
80
80
} ,
81
+ {
82
+ link : '/docs/api/chat-rest' ,
83
+ name : 'REST API' ,
84
+ } ,
81
85
] ,
82
86
} ,
83
87
] ,
Original file line number Diff line number Diff line change
1
+ import { Link , withAssetPrefix } from 'gatsby' ;
2
+ import Icon from '@ably/ui/core/Icon' ;
3
+ import { useSiteMetadata } from '../../../hooks/use-site-metadata' ;
4
+ import { Head } from '../../../components/Head' ;
5
+ import { Loader } from '../../../components/Redoc' ;
6
+
7
+ const ChatRestApi = ( ) => {
8
+ const { canonicalUrl } = useSiteMetadata ( ) ;
9
+ const canonical = canonicalUrl ( '/docs/api/chat-rest' ) ;
10
+ const meta_title = 'Chat REST API' ;
11
+ const meta_description = 'The Chat REST API enables you to interact with the Ably Chat endpoints via REST.' ;
12
+ const chatRest = withAssetPrefix ( '/open-specs/chat.yaml' ) ;
13
+
14
+ return (
15
+ < >
16
+ < Head title = { meta_title } metaTitle = { meta_title } canonical = { canonical } description = { meta_description } />
17
+ < div className = "ml-8 mt-32 mb-24" >
18
+ < div className = "text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-text-p2" >
19
+ < Link to = "/docs/chat" >
20
+ < Icon
21
+ name = "icon-gui-arrow-long-right-micro"
22
+ size = "1rem"
23
+ additionalCSS = "align-middle transform rotate-180 mr-4 h-16 w-16 ui-link"
24
+ />
25
+ Ably Chat
26
+ </ Link >
27
+ < span className = "ui-text-p2 ml-4" > / { meta_title } </ span >
28
+ </ div >
29
+ </ div >
30
+ < Loader specUrl = { chatRest } />
31
+ </ >
32
+ ) ;
33
+ } ;
34
+
35
+ export default ChatRestApi ;
You can’t perform that action at this time.
0 commit comments