Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenconde committed May 21, 2019
2 parents 531c8e7 + 6c2e8f5 commit 8d86ac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/PhotoController.php
Expand Up @@ -194,7 +194,7 @@ public function store(Request $request)
//Validation for the parameters
$validator = Validator::make($params, [
'description' => 'required',
'idSeries' => 'numeric',
'idSeries' => 'numeric|exists:series,id',
'latitude' => 'required|numeric',
'longitude' => 'required|numeric',
'url' => 'required|url',
Expand Down Expand Up @@ -228,7 +228,7 @@ public function update(Request $request, Photo $photo)
//Validation for the parameters
$validator = Validator::make($params, [
'description' => 'filled',
'idSeries' => 'filled',
'idSeries' => 'numeric|exists:series,id',
'latitude' => 'numeric',
'longitude' => 'numeric',
'url' => 'url',
Expand Down
4 changes: 3 additions & 1 deletion routes/api.php
Expand Up @@ -21,7 +21,9 @@
Route::get('/', function () {
$status = [
"version" => "1.0",
"online" => true
"online" => true,
"maintenance" => false,
"deprecated" => false
];
$baseController = new BaseController();
return $baseController->sendResponse($status, 'GeoQuizz API Status');
Expand Down

0 comments on commit 8d86ac9

Please sign in to comment.