{
    "info": {
        "_postman_id": "816a3ad6-68b7-4b45-b8e3-44f1c8978729",
        "name": "Webeditor",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "description": ""
    },
    "item": [
        {
            "name": "clone",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/templates.php?template_id=1&destination=otrex&data_api=https://jsonplaceholder.typicode.com/todos&data_api_key=1&app_key=str&data_field",
                    "query": [
                        {
                            "key": "template_id",
                            "value": "1"
                        },
                        {
                            "key": "destination",
                            "value": "otrex"
                        },
                        {
                            "key": "data_api",
                            "value": "https://jsonplaceholder.typicode.com/todos"
                        },
                        {
                            "key": "data_api_key",
                            "value": "1"
                        },
                        {
                            "key": "app_key",
                            "value": "str"
                        },
                        {
                            "key": "data_field",
                            "value": ""
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "templates.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                }
            }
        },
        {
            "name": "domain",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "http://app.editor.test:8081/api/domain.php?sub_domain=otrex&custom_domain=dev.debby.test&app_key=str",
                    "query": [
                        {
                            "key": "sub_domain",
                            "value": "otrex"
                        },
                        {
                            "key": "custom_domain",
                            "value": "dev.debby.test"
                        },
                        {
                            "key": "app_key",
                            "value": "str"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "domain.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                }
            }
        },
        {
            "name": "get templates",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "http://app.editor.test:8081/api/templates.php?app_key=str",
                    "query": [
                        {
                            "key": "id",
                            "value": "1",
                            "disabled": true
                        },
                        {
                            "key": "app_key",
                            "value": "str"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "templates.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                }
            }
        },
        {
            "name": "ssl-run-certbot",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://127.0.0.1:3000/run-certbot",
                    "path": [
                        "run-certbot"
                    ],
                    "protocol": "http",
                    "host": [
                        "127",
                        "0",
                        "0",
                        "1"
                    ],
                    "port": "3000"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "domain",
                            "value": "huby.jij.test"
                        },
                        {
                            "key": "folder",
                            "value": "otrex"
                        }
                    ]
                }
            }
        },
        {
            "name": "test_api Copy",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "https://jsonplaceholder.typicode.com/todos/1",
                    "path": [
                        "todos",
                        "1"
                    ],
                    "protocol": "https",
                    "host": [
                        "jsonplaceholder",
                        "typicode",
                        "com"
                    ]
                }
            }
        },
        {
            "name": "ssl-reload-apache",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "http://127.0.0.1:3000/reload-apache",
                    "path": [
                        "reload-apache"
                    ],
                    "protocol": "http",
                    "host": [
                        "127",
                        "0",
                        "0",
                        "1"
                    ],
                    "port": "3000"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "domain",
                            "value": "huby.jij.test"
                        },
                        {
                            "key": "folder",
                            "value": "otrex"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - rename",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php?action=rename",
                    "query": [
                        {
                            "key": "action",
                            "value": "rename"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "file",
                            "value": ".sites/otrex/my-page.html"
                        },
                        {
                            "key": "html",
                            "value": "<h1>Hello</h1>"
                        },
                        {
                            "key": "newfile",
                            "value": ".sites/otrex/game.html"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - clone",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php?action=rename",
                    "query": [
                        {
                            "key": "action",
                            "value": "rename"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "file",
                            "value": ".sites/otrex/game.html"
                        },
                        {
                            "key": "html",
                            "value": "<h1>Hello</h1>"
                        },
                        {
                            "key": "newfile",
                            "value": ".sites/otrex/test.html"
                        },
                        {
                            "key": "duplicate",
                            "value": "true"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - delete",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php?action=delete",
                    "query": [
                        {
                            "key": "action",
                            "value": "delete"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "file",
                            "value": ".sites/otrex/game.html"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - reusable",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php?action=saveReusable",
                    "query": [
                        {
                            "key": "action",
                            "value": "saveReusable"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "type",
                            "value": "block"
                        },
                        {
                            "key": "name",
                            "value": "demo.html"
                        },
                        {
                            "key": "html",
                            "value": "<h1>Hello WOrld</h1>"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - create",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php",
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "file",
                            "value": ".sites/otrex/obisike.html"
                        },
                        {
                            "key": "startTemplateUrl",
                            "value": "src/pages/new-page-blank-template.html"
                        }
                    ]
                }
            }
        },
        {
            "name": "save - create from template",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/save.php",
                    "path": [
                        "api",
                        "save.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "file",
                            "value": ".sites/otrex/my.html"
                        },
                        {
                            "key": "html",
                            "value": "<h1>Hello</h1>"
                        }
                    ]
                }
            }
        },
        {
            "name": "media - scan",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/media.php?action=scan&gallery=otrex",
                    "query": [
                        {
                            "key": "action",
                            "value": "scan"
                        },
                        {
                            "key": "mediaPath",
                            "value": "otrex",
                            "disabled": true
                        },
                        {
                            "key": "gallery",
                            "value": "otrex"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "media.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                }
            }
        },
        {
            "name": "media - upload",
            "request": {
                "method": "POST",
                "url": {
                    "raw": "http://app.editor.test:8081/api/media.php?action=upload&mediaPath=otrex",
                    "query": [
                        {
                            "key": "action",
                            "value": "upload"
                        },
                        {
                            "key": "mediaPath",
                            "value": "otrex"
                        }
                    ],
                    "variable": [],
                    "path": [
                        "api",
                        "media.php"
                    ],
                    "protocol": "http",
                    "host": [
                        "app",
                        "editor",
                        "test"
                    ],
                    "port": "8081"
                },
                "body": {
                    "mode": "formdata",
                    "formdata": [
                        {
                            "key": "file",
                            "src": "/Users/otrex/Downloads/otrex (2).png",
                            "type": "file"
                        }
                    ]
                }
            }
        }
    ]
}