API Documentor v0.1

0) { $result = array(array_pop($arrayOfKeys) => $result); } return $result; } ksort($endpointDefs); foreach ($endpointDefs as $endpointSignature => $endpointDef) { $endpointSignatureArray = explode('.', $endpointSignature); $endpointStructure = array_merge_recursive($endpointStructure, dotToArray($endpointSignatureArray)); } $jsonPath = array_filter(explode('.', $_GET['path'])); function buildOptions($options, $parentPath = null, $depth = 0) { global $jsonPath; // If there are no options there is no need to continue if (is_array($options) === false || count($options) === 0) { return; } $selectOptions = []; $selectNextLevel = ''; $selectedOption = ''; foreach ($options as $key => $option) { $path = !is_null($parentPath) ? $parentPath . '.' . $key:$key; if (isset($jsonPath[$depth]) && $jsonPath[$depth] === $key) { $selectNextLevel = buildOptions($option, $path, ++$depth); $selectedOption = ''; //continue; } $selectOptions[] = '
  • '.ucwords($key).'
  • '; } $options = implode('', $selectOptions); return << {$selectedOption} {$selectNextLevel} HTML; } ?>

                    
                        
                        {$1}', $endpointDetails['path']); ?>
                         0) : ?>
                            ?
                             $parameterDetails) : ?>
                                =
                                
                            
                        
                    
                
    0) : ?>

    Path Parameters

    $argumentDetails) : ?>
    * Type:
    0) : ?>

    Query String Parameters

    $parameterDetails) : ?>
    * Type:
    Default:
    NULL
    0) : ?>

    Response

    $responseDetails) : ?>
    Type: