echo '<h1>Test Skills</h1>
<p>Tests:</p>
<ul>
<li>Skills Index</li>
<li>Skills Show</li>
<li>Skills Create</li>
<li>Skills Destroy</li>
<li>Skills Users Index</li>
<li>Skills Users Index Ids</li>
<li>Skills Users Count</li>
</ul>';
$ca = new CityApi();
$ca->debug = true;
echo '<h1>skills_index</h1>';
$ca->json = false;
$results = $ca->skills_index();
$skillid = $results['skills'][0]['id'];
echo '<pre>skillid: ' . $skillid . '</pre>';
echo '<h2>Formatted JSON results: </h2>';
echo '<pre>';
echo format_json(json_encode($results));
echo '</pre>';
echo '<hr>';
echo '<h1>skills_show</h1>';
$ca->json = true;
$results = $ca->skills_show($skillid);
echo '<h2>Formatted JSON results: </h2>';
echo '<pre>';
echo format_json($results);
echo '</pre>';
echo '<hr>';