Skip to content

Commit

Permalink
Merge pull request #242 from peviitor-ro/nou10
Browse files Browse the repository at this point in the history
updated v0/jobs
  • Loading branch information
sebiboga committed Jul 13, 2024
2 parents 8a9a430 + da20855 commit 06e14f0
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions v0/jobs/index.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
<?php
header("Access-Control-Allow-Origin: *");
/**
* @OA\Get(
* path="/v0/jobs/",
* tags={"machine learning"},
* operationId="getJobs",
* @OA\Parameter(
* in="query",
* name="start",
* @OA\Schema(type="string"),
* example="100"
* ),
* @OA\Response(
* response="200",
* description="Success"
* )
* )
*/

if (isset($_GET["start"])) {
$start = $_GET["start"];
$qs .= "&start=" . $start;
}

require_once '../config.php';

Expand All @@ -42,6 +20,11 @@
$qs = $qs . '&';
$qs = $qs . 'useParams=';

if (isset($_GET["start"])) {
$start = $_GET["start"];
$qs .= "&start=" . $start;
}

$url = 'http://' . $server . '/solr/' . $core . '/select'. $qs;

$json = file_get_contents($url);
Expand Down

0 comments on commit 06e14f0

Please sign in to comment.