Skip to content

Commit

Permalink
+ swagger doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroNPereyra committed Feb 21, 2024
1 parent b1211b3 commit af2e54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class AnnotationsSpecializationList
/**
* @OA\Get(
* path="/api/v1/specialization/list",
* summary="Specialization list",
* summary="Retrieve a specialization list from resume model enum",
* tags={"Specialization"},
* @OA\Response(
* response=200,
* description="Successful. Specialization list retrieved",
* description="Successful. Specialization list retrieved from enum",
* @OA\JsonContent(
* type="array",
* @OA\Items(type="string")
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/api/SpecializationListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class SpecializationListController extends Controller
{
public function __invoke()
{
// Retrieve unique specialization codes from the Resume model excluding 'Not Set'
$specialization_list = Resume::distinct()
->where('specialization', '!=', 'Not Set')
->pluck('specialization')
Expand Down

0 comments on commit af2e54a

Please sign in to comment.