Skip to content

Commit

Permalink
Merge pull request #255 from peviitor-ro/fix-254
Browse files Browse the repository at this point in the history
update v0
  • Loading branch information
sebiboga committed Jul 13, 2024
2 parents 39d43d3 + 6bc795e commit 4df92b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
9 changes: 1 addition & 8 deletions v0/total/index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?php
header("Access-Control-Allow-Origin: *");

/**
* @OA\Get(
* path="/v0/total/", tags={"UI"},
* @OA\Response(response="200", description="Success")
* )
*/

require_once '../config.php';

$core = "jobs";
Expand All @@ -33,7 +26,7 @@
$qs = $qs . '&';
$qs = $qs . 'useParams=';

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

$string = file_get_contents($url);
$json = json_decode($string, true);
Expand Down
30 changes: 0 additions & 30 deletions v0/update/index.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
<?php
header("Access-Control-Allow-Origin: *");

/**
* @OA\Post(
* path="/v0/update/",
* tags={"scraper"},
* @OA\RequestBody(
* @OA\MediaType(
* mediaType="application/json",
* @OA\Schema(
*
* type="array",
*
* @OA\Items(
* type="object",
* @OA\Property(property="id", type="string", example="95b81d8a-f60a-4efb-a8ba-1369b3b4ee79"),
* @OA\Property(property="job_title", type="string", example="test"),
* @OA\Property(property="job_link", type="string", example="https://www.epam.com/careers/job-listings/job.55552.software-test-automation-engineer-java_mykolaiv_ukraine"),
* @OA\Property(property="company", type="string", example="test"),
* @OA\Property(property="country", type="string", example="Romania"),
* @OA\Property(property="remote", type="string", example="remote"),
* @OA\Property(property="city", type="string", example="Cluj-Napoca")
* )
* )
* )
* ),
* @OA\Response(response="200", description="Success")
*
* )
*/

function city_fix($in){
$output = $in;
$output = str_replace("Bucharest","București",$output);
Expand Down

0 comments on commit 4df92b0

Please sign in to comment.