Bläddra i källkod

Help and main page updated.

Iñigo Valentin 5 år sedan
förälder
incheckning
e67849fa0b

+ 2 - 2
application/API/v3/API_Controller.php

@@ -38,8 +38,8 @@
             if (!in_array($method, ["GET", "POST", "PUT", "DELETE"])){
                 $method = "GET";
             }
-            if (count($query) == 0){
-                require_once(__DIR__ . "main.php");
+            if (count($query) == 0 || $query[0] == null || $query[0] == ""){
+                require_once(__DIR__ . "/main.php");
             }
             else{
                 $command = strtolower($query[0]);

+ 3 - 3
application/API/v3/help/api.php

@@ -256,7 +256,7 @@
                             [
                                 "id" => "POST",
                                 "url" => "/run/",
-                                "description" => "Logs a game run.",
+                                "description" => "Logs a game run using JSON files intercepted from the game.",
                                 "parameters" => [
                                     [
                                         "key" => "key",
@@ -276,14 +276,14 @@
                                         "key" => "result_request",
                                         "via" => "body",
                                         "type" => "string",
-                                        "description" => "JSON sent to game server on run result. Required for commands: BattleDungeonResult_V2",
+                                        "description" => "JSON sent to game server on run result. Required for commands: BattleDungeonResult_V2, BattleDimensionHoleDungeonResult_v2",
                                         "optional" => true
                                     ],
                                     [
                                         "key" => "start_response",
                                         "via" => "body",
                                         "type" => "string",
-                                        "description" => "JSON received from game server on run start. Required for commands: ",
+                                        "description" => "JSON received from game server on run start. Required for commands: BattleRiftOfWorldsRaidResult, BattleScenarioResult",
                                         "optional" => true
                                     ],
                                     [

+ 0 - 50
application/API/v3/help/index.php

@@ -21,21 +21,6 @@
         <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>ui.css'/>
         <style>
 
-            aside{
-                /*text-align: left;
-                position: fixed;
-                top: 0;
-                left: 0;
-                width: 15%;
-                height: 100%;
-                border-radius: 0;
-                margin: 0 1em 0 0;
-                padding: 0em 0.4em 0.1em 0.4em;
-                border-left: 0;
-                border-top: 0;
-                border-bottom: 0;*/
-            }
-
             aside hr{
                 height: 0em;
                 padding: 0;
@@ -44,33 +29,6 @@
                 border-radius: 1em;
             }
 
-            aside h1{
-                /*text-align: center;
-                margin-top: 0;*/
-            }
-
-            aside h1 img{
-                /*max-width: 100%;
-                display: block;
-                margin: auto auto -1em auto;*/
-            }
-
-            aside h1 div{
-                /*text-shadow: 0 0 0.5em #000000, 0 0 0.5em #000000, 0 0 0.2em #000000, 0 0 0.2em #000000;
-                font-family: monospace, monospace;*/
-            }
-
-            aside h1 div#swdb{
-                /*font-weight: bold;
-                font-size: 160%;
-                margin-bottom: -0.2em;*/
-            }
-
-            aside h1 div#api{
-                /*font-style: italic;
-                font-size: 110%;*/
-            }
-
             aside h3 {
                 margin: 0.4em 0 0.2em 1em;
                 border-left: 0.5em solid #db490054;
@@ -125,14 +83,6 @@
                 bottom: 1em;
             }
 
-            section.category{
-                /*margin: 2em 1em 1em 18%;*/
-            }
-
-            section.category h2{
-                /*padding: 0.5em 3em;*/
-            }
-
             section.category article{
                 margin: 1.5em;
                 padding-left: 1em;

BIN
application/sw.sqlite