This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-48
lines changed Expand file tree Collapse file tree 3 files changed +32
-48
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Swagger \Block ;
7
+
8
+ use Magento \Framework \View \Element \Template ;
9
+
10
+ /**
11
+ * Class Index
12
+ * @package Magento\Swagger\Block
13
+ */
14
+ class Index extends Template
15
+ {
16
+ /**
17
+ * @return mixed|string
18
+ */
19
+ public function getParamStore ()
20
+ {
21
+ return ($ this ->getRequest ()->getParam ('store ' )) ? $ this ->getRequest ()->getParam ('store ' ) : 'all ' ;
22
+ }
23
+
24
+ /**
25
+ * @return string
26
+ */
27
+ public function getSchemaUrl ()
28
+ {
29
+ return rtrim ($ this ->getBaseUrl (), '/ ' ) . '/rest/ ' . $ this ->getParamStore () . '/schema?services=all ' ;
30
+ }
31
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 41
41
<referenceContainer name =" page.wrapper" remove =" true" />
42
42
<referenceBlock name =" requirejs-config" remove =" true" />
43
43
<referenceContainer name =" root" >
44
- <block name =" swaggerUiContent" class =" Magento\Framework\View\Element\Template " template =" Magento_Swagger::swagger-ui/index.phtml" />
44
+ <block name =" swaggerUiContent" class =" Magento\Swagger\Block\Index " template =" Magento_Swagger::swagger-ui/index.phtml" />
45
45
</referenceContainer >
46
46
</body >
47
47
</page >
You can’t perform that action at this time.
0 commit comments