Loading module/SygalApiImpl/bin/_call-common.php +4 −2 Changes for module/SygalApiImpl/bin/_call-common.php: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ $port = $_SERVER['PORT'] ?? null; $version = $_SERVER['VERSION'] ?? 'v1'; $n = $_SERVER['N'] ?? 1; $sampleDataFilePath = realpath(__DIR__ . '/doctorant-api-v1.data.json'); if ($port === null) { echo "Le port doit être spécifié dans la variable d'env 'PORT'." . PHP_EOL; Loading @@ -16,7 +17,7 @@ echo "N = $n" . PHP_EOL; $args = implode(' ', array_slice($_SERVER['argv'], 1)); $json = trim(file_get_contents(__DIR__ . '/data.json')); $json = trim(file_get_contents($sampleDataFilePath)); $cmd = <<<EOT curl $args \ Loading @@ -27,7 +28,8 @@ curl $args \ -H "Authorization: Basic c3lnYWwtYXBwOmF6ZXJ0eQ==" \ -X POST \ -d '$json' \ https://localhost:$port/$version/inscription https://localhost:$port/$version/inscription-administrative \ -b XDEBUG_SESSION=PHPSTORM EOT; //echo $cmd . PHP_EOL; Loading module/SygalApiImpl/bin/data.jsondeleted 100644 → 0 +0 −180 Changes for module/SygalApiImpl/bin/data.json: 0 added lines, 180 removed lines. Original line number Diff line number Diff line { "descSchema": { "idSchemaDonnees": "string", "version": "string" }, "routage": { "codeInstancePegase": "string" }, "structure": { "codeUAI": "string" }, "periode": { "codePeriode": "string" }, "apprenant": { "code_apprenant": "string", "etatCivil": { "nomDeNaissance": "string", "nomUsuel": "string", "prenom": "string", "deuxiemePrenom": "string", "troisiemePrenom": "string", "genre": "string" }, "naissance": { "dateDeNaissance": "string", "paysDeNaissance": "100", "libellePaysDeNaissance": "France", "communeDeNaissance": "67482", "libelleCommuneDeNaissance": "Strasbourg", "communeDeNaissanceEtranger": "string", "nationalite": "string", "libelleNationalite": "string", "deuxiemeNationalite": "string", "libelleDeuxiemeNationalite": "string", "dateDObtentionDeLaDeuxiemeNationalite": "string" }, "situationPersonnelle": { "situationFamiliale": "string", "enfants": 0, "situationMilitaire": "string" }, "profession": { "etudiant": "string", "parent1": "string", "parent2": "string", "quotite": "string" }, "contacts": [ { "canalCommunication": "ContactAdresseComplet", "demandeDeContact": { "est1": "string", "code": "string", "codeStructure": "string", "libelleAffichage": "string", "canalCommunication": "MAIL", "temoinSaisie": "OBLIGATOIRE", "temoinSaisieProprietaire": "OBLIGATOIRE" }, "proprietaire": "string" } ], "bac": { "titreAcces": "string", "anneeObtention": "string", "serie": "string", "libelleSerie": "string", "premiereSpecialiteBac": "string", "libellePremiereSpecialiteBac": "string", "deuxiemeSpecialiteBac": "string", "libelleDeuxiemeSpecialiteBac": "string", "mention": "string", "libelleMention": "string", "typeEtablissement": "string", "pays": "string", "libellePays": "string", "departement": "string", "libelleDepartement": "string", "etablissement": "string", "ine": "string", "etablissementLibre": "string", "detailTitre": "string" }, "premieresInscriptions": { "anneeEnseignementSuperieur": "string", "anneeUniversite": "string", "anneeEtablissement": "string" } }, "inscription": { "cible": { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string", "codeStructure": "ETAB00", "formation": { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string" }, "chemin": [ { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string", "nature": "ObjetFormation" } ] }, "noCandidat": "string", "origine": "concours", "principale": true, "statutInscription": "preinscrit", "statutPaiement": "sans_statut", "statutPieces": "sans_statut", "regimeInscription": { "nomenclature": "RegimeInscription", "code": "string", "libelle": "string", "contexteConsommation": "string" }, "boursesEtAides": [ { "nomenclature": "RegimeInscription", "code": "string", "libelle": "string", "contexteConsommation": "string" } ], "situationPersonnelleInscription": { "amenagementsSpecifiques": [ "RSE" ], "souhaitAmenagement": true, "profilsSpecifiques": [ "string" ] }, "cvec": { "numero": "string" }, "admission": { "voie": "concours", "anneeConcours": 0, "concours": "string", "rangConcours": 0, "anneePrecedente": 0, "temoinClassePrepa": true, "typePrepa": "string", "puissancePrepa": "string", "typeEtablissementPrecedent": "string", "departementEtablissementPrecedent": "string", "paysEtablissementPrecedent": "string", "etablissementPrecedent": "string", "etablissementPrecedentEtranger": "string" }, "situationUniversitaire": { "cesure": "SANS", "mobilite": "SANS" }, "situationPrecedente": { "anneePrecedente": 0, "situationPrecedente": { "typeNomenclature": "string", "code": "string", "libelle": "string", "prioriteAffichage": 0, "codeBcn": "string" }, "anneeObtentionDuDernierDiplome": 0, "dernierDiplome": "string" }, "dateInscription": "string", "dateDerniereModification": "string" } } module/SygalApiImpl/bin/doctorant-api-v1.data.json 0 → 100644 +88 −0 Changes for module/SygalApiImpl/bin/doctorant-api-v1.data.json: 88 added lines, 0 removed lines. Original line number Diff line number Diff line { "instancePegase": "id commodo in", "apprenant": { "INE": "3213132165464546", "code": "fqdsf54qdf54q6sd6dqs4f654", "deuxiemePrenom": "Alex", "genre": "", "mailPersonnel": "adresse@mail.fr", "mailUrgence": "adresse@mail.fr", "nomDeNaissance": "Térieur", "nomUsuel": "Térieur", "prenom": "Alain", "prenomUsage": "Alain", "telephonePersonnel": "0123456789", "telephoneUrgence": "", "troisiemePrenom": "", "naissance": { "communeDeNaissance": "67482", "communeDeNaissanceEtranger": "", "dateDObtentionDeLaDeuxiemeNationalite": "consequat culpa", "dateDeNaissance": "2000-01-01", "deuxiemeNationalite": "sed commodo elit officia dolor", "libelleCommuneDeNaissance": "Strasbourg", "libelleDeuxiemeNationalite": "eiusmod aute ullamco id", "libelleNationalite": "Française", "libellePaysDeNaissance": "France", "nationalite": "fr", "paysDeNaissance": "fr" }, "adresseResidenceUniversitaire": { "codeInsee": "1234", "codePostal": "67482", "libelleCommune": "Strasbourg", "libellePays": "France", "ligne1OuEtage": "", "ligne2OuBatiment": "", "ligne3OuVoie": "", "ligne4OuComplement": "", "ligne5Etranger": "", "pays": "FR" }, "adresseFixeHorsPeriodeUniversitaire": { "codeInsee": "1234", "codePostal": "67482", "libelleCommune": "Strasbourg", "libellePays": "France", "ligne1OuEtage": "", "ligne2OuBatiment": "", "ligne3OuVoie": "", "ligne4OuComplement": "", "ligne5Etranger": "", "pays": "FR" } }, "inscription": { "noCandidat": "1234", "origine": "ecandidat", "formation": "ut Excepteur", "statutInscription": "valide", "regimeInscription": { "code": "1234", "libelle": "sdfsfjmsdqfjmjklh" }, "chemin": "Lorem ut adipisicing do", "codeStructureEtablissementDuChemin": "officia", "principale": true, "cesure": "SANS", "mobilite": "SANS", "periode": { "code": "GHJGHGJHG", "libelle": "Lorem ut adipisicing do", "dateFin": "2022-09-01", "dateDebut": "2023-08-31", "anneeUniversitaire": 2022 }, "boursesEtAides": [ { "code": "eiusmod mollit esse", "libelle": "cillum" } ], "dateAnnulation": "aliqua laboris pariatur consequat in", "formation": "tempor esse dolor", "ecoleDoctorale": "497", "dateInscription": "", "dateAnnulation": "" } } No newline at end of file module/SygalApiImpl/src/V1/Rest/Inscription/InscriptionResource.php +1 −1 Changes for module/SygalApiImpl/src/V1/Rest/Inscription/InscriptionResource.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class InscriptionResource extends \SygalApi\V1\Rest\Inscription\InscriptionResou $this->logger->debug(print_r([__METHOD__, $data], true)); //var_dump($data); return new ApiProblem(501, 'Revenez plus tard !'); // return new ApiProblem(501, 'Revenez plus tard !'); // Faire qqchose avec les inscriptions reçues ! //... Loading Loading
module/SygalApiImpl/bin/_call-common.php +4 −2 Changes for module/SygalApiImpl/bin/_call-common.php: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ $port = $_SERVER['PORT'] ?? null; $version = $_SERVER['VERSION'] ?? 'v1'; $n = $_SERVER['N'] ?? 1; $sampleDataFilePath = realpath(__DIR__ . '/doctorant-api-v1.data.json'); if ($port === null) { echo "Le port doit être spécifié dans la variable d'env 'PORT'." . PHP_EOL; Loading @@ -16,7 +17,7 @@ echo "N = $n" . PHP_EOL; $args = implode(' ', array_slice($_SERVER['argv'], 1)); $json = trim(file_get_contents(__DIR__ . '/data.json')); $json = trim(file_get_contents($sampleDataFilePath)); $cmd = <<<EOT curl $args \ Loading @@ -27,7 +28,8 @@ curl $args \ -H "Authorization: Basic c3lnYWwtYXBwOmF6ZXJ0eQ==" \ -X POST \ -d '$json' \ https://localhost:$port/$version/inscription https://localhost:$port/$version/inscription-administrative \ -b XDEBUG_SESSION=PHPSTORM EOT; //echo $cmd . PHP_EOL; Loading
module/SygalApiImpl/bin/data.jsondeleted 100644 → 0 +0 −180 Changes for module/SygalApiImpl/bin/data.json: 0 added lines, 180 removed lines. Original line number Diff line number Diff line { "descSchema": { "idSchemaDonnees": "string", "version": "string" }, "routage": { "codeInstancePegase": "string" }, "structure": { "codeUAI": "string" }, "periode": { "codePeriode": "string" }, "apprenant": { "code_apprenant": "string", "etatCivil": { "nomDeNaissance": "string", "nomUsuel": "string", "prenom": "string", "deuxiemePrenom": "string", "troisiemePrenom": "string", "genre": "string" }, "naissance": { "dateDeNaissance": "string", "paysDeNaissance": "100", "libellePaysDeNaissance": "France", "communeDeNaissance": "67482", "libelleCommuneDeNaissance": "Strasbourg", "communeDeNaissanceEtranger": "string", "nationalite": "string", "libelleNationalite": "string", "deuxiemeNationalite": "string", "libelleDeuxiemeNationalite": "string", "dateDObtentionDeLaDeuxiemeNationalite": "string" }, "situationPersonnelle": { "situationFamiliale": "string", "enfants": 0, "situationMilitaire": "string" }, "profession": { "etudiant": "string", "parent1": "string", "parent2": "string", "quotite": "string" }, "contacts": [ { "canalCommunication": "ContactAdresseComplet", "demandeDeContact": { "est1": "string", "code": "string", "codeStructure": "string", "libelleAffichage": "string", "canalCommunication": "MAIL", "temoinSaisie": "OBLIGATOIRE", "temoinSaisieProprietaire": "OBLIGATOIRE" }, "proprietaire": "string" } ], "bac": { "titreAcces": "string", "anneeObtention": "string", "serie": "string", "libelleSerie": "string", "premiereSpecialiteBac": "string", "libellePremiereSpecialiteBac": "string", "deuxiemeSpecialiteBac": "string", "libelleDeuxiemeSpecialiteBac": "string", "mention": "string", "libelleMention": "string", "typeEtablissement": "string", "pays": "string", "libellePays": "string", "departement": "string", "libelleDepartement": "string", "etablissement": "string", "ine": "string", "etablissementLibre": "string", "detailTitre": "string" }, "premieresInscriptions": { "anneeEnseignementSuperieur": "string", "anneeUniversite": "string", "anneeEtablissement": "string" } }, "inscription": { "cible": { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string", "codeStructure": "ETAB00", "formation": { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string" }, "chemin": [ { "est1": "string", "code": "string", "libelleCourt": "string", "libelleLong": "string", "nature": "ObjetFormation" } ] }, "noCandidat": "string", "origine": "concours", "principale": true, "statutInscription": "preinscrit", "statutPaiement": "sans_statut", "statutPieces": "sans_statut", "regimeInscription": { "nomenclature": "RegimeInscription", "code": "string", "libelle": "string", "contexteConsommation": "string" }, "boursesEtAides": [ { "nomenclature": "RegimeInscription", "code": "string", "libelle": "string", "contexteConsommation": "string" } ], "situationPersonnelleInscription": { "amenagementsSpecifiques": [ "RSE" ], "souhaitAmenagement": true, "profilsSpecifiques": [ "string" ] }, "cvec": { "numero": "string" }, "admission": { "voie": "concours", "anneeConcours": 0, "concours": "string", "rangConcours": 0, "anneePrecedente": 0, "temoinClassePrepa": true, "typePrepa": "string", "puissancePrepa": "string", "typeEtablissementPrecedent": "string", "departementEtablissementPrecedent": "string", "paysEtablissementPrecedent": "string", "etablissementPrecedent": "string", "etablissementPrecedentEtranger": "string" }, "situationUniversitaire": { "cesure": "SANS", "mobilite": "SANS" }, "situationPrecedente": { "anneePrecedente": 0, "situationPrecedente": { "typeNomenclature": "string", "code": "string", "libelle": "string", "prioriteAffichage": 0, "codeBcn": "string" }, "anneeObtentionDuDernierDiplome": 0, "dernierDiplome": "string" }, "dateInscription": "string", "dateDerniereModification": "string" } }
module/SygalApiImpl/bin/doctorant-api-v1.data.json 0 → 100644 +88 −0 Changes for module/SygalApiImpl/bin/doctorant-api-v1.data.json: 88 added lines, 0 removed lines. Original line number Diff line number Diff line { "instancePegase": "id commodo in", "apprenant": { "INE": "3213132165464546", "code": "fqdsf54qdf54q6sd6dqs4f654", "deuxiemePrenom": "Alex", "genre": "", "mailPersonnel": "adresse@mail.fr", "mailUrgence": "adresse@mail.fr", "nomDeNaissance": "Térieur", "nomUsuel": "Térieur", "prenom": "Alain", "prenomUsage": "Alain", "telephonePersonnel": "0123456789", "telephoneUrgence": "", "troisiemePrenom": "", "naissance": { "communeDeNaissance": "67482", "communeDeNaissanceEtranger": "", "dateDObtentionDeLaDeuxiemeNationalite": "consequat culpa", "dateDeNaissance": "2000-01-01", "deuxiemeNationalite": "sed commodo elit officia dolor", "libelleCommuneDeNaissance": "Strasbourg", "libelleDeuxiemeNationalite": "eiusmod aute ullamco id", "libelleNationalite": "Française", "libellePaysDeNaissance": "France", "nationalite": "fr", "paysDeNaissance": "fr" }, "adresseResidenceUniversitaire": { "codeInsee": "1234", "codePostal": "67482", "libelleCommune": "Strasbourg", "libellePays": "France", "ligne1OuEtage": "", "ligne2OuBatiment": "", "ligne3OuVoie": "", "ligne4OuComplement": "", "ligne5Etranger": "", "pays": "FR" }, "adresseFixeHorsPeriodeUniversitaire": { "codeInsee": "1234", "codePostal": "67482", "libelleCommune": "Strasbourg", "libellePays": "France", "ligne1OuEtage": "", "ligne2OuBatiment": "", "ligne3OuVoie": "", "ligne4OuComplement": "", "ligne5Etranger": "", "pays": "FR" } }, "inscription": { "noCandidat": "1234", "origine": "ecandidat", "formation": "ut Excepteur", "statutInscription": "valide", "regimeInscription": { "code": "1234", "libelle": "sdfsfjmsdqfjmjklh" }, "chemin": "Lorem ut adipisicing do", "codeStructureEtablissementDuChemin": "officia", "principale": true, "cesure": "SANS", "mobilite": "SANS", "periode": { "code": "GHJGHGJHG", "libelle": "Lorem ut adipisicing do", "dateFin": "2022-09-01", "dateDebut": "2023-08-31", "anneeUniversitaire": 2022 }, "boursesEtAides": [ { "code": "eiusmod mollit esse", "libelle": "cillum" } ], "dateAnnulation": "aliqua laboris pariatur consequat in", "formation": "tempor esse dolor", "ecoleDoctorale": "497", "dateInscription": "", "dateAnnulation": "" } } No newline at end of file
module/SygalApiImpl/src/V1/Rest/Inscription/InscriptionResource.php +1 −1 Changes for module/SygalApiImpl/src/V1/Rest/Inscription/InscriptionResource.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class InscriptionResource extends \SygalApi\V1\Rest\Inscription\InscriptionResou $this->logger->debug(print_r([__METHOD__, $data], true)); //var_dump($data); return new ApiProblem(501, 'Revenez plus tard !'); // return new ApiProblem(501, 'Revenez plus tard !'); // Faire qqchose avec les inscriptions reçues ! //... Loading