-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Histologe] Avancer sur une route GET #3339
base: develop
Are you sure you want to change the base?
Conversation
4a80e75
to
b2c3125
Compare
UrlGeneratorInterface $urlGenerator, | ||
string $reference, | ||
): JsonResponse { | ||
$signalements = $signalementRepository->findForAPI(user : $this->getUser(), reference : $reference); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça va pas poser souci pour les utilisateurs en multi-territoire ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oui j'ai mis un todo dans la requête j'adapterais après le merge de la PR multi ter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrigé
$this->description = $suivi->getDescription(); // traitement de suppression du html ? comment gérer les bouton/doc qui sont présent en dur dans le contenu ? | ||
$this->public = $suivi->getIsPublic(); | ||
$this->type = $suivi->getType(); // envoyer un libellé ? | ||
// exposer "createdBy" sous quelle forme ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça semble important ; au même format que sur la fiche signalement ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mouais, je suis pas convaincu par l'usine a gaz qui c'est monté au fil du temps sur ce point la coté fiche signalement. J'ai mis un TODO pour réfléchir au sujet mais aprés le merge multi territoire qui impacte le sujet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est fait
#[When('dev')] | ||
#[When('test')] | ||
#[Route('/api')] | ||
class SignalementController extends AbstractController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On part du principe que les signalements sont récupérable à partir du moment ou la DDT valide et affecte au partenaire. Si le partenaire à une clé d'API elle peut récupérer les signalements affectés à un ou plusieurs type de partenaires.
Permettre le filtre par date et plage de date, ça serait la date d'affectation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai effectivement revu le principe pour retourner la liste des signalements affectés au partenaire de l'user API.
Pour les filtres (dates ou autres) est-ce qu'on attends pas un autre ticket ? Il faudrait dans ce cas rajouter la date d'affectation pour le partenaire dans ce qui est retourné.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour l'ajout de filtres, on peut attendre un autre ticket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public ?string $civiliteOccupant; | ||
public ?string $nomOccupant; | ||
public ?string $prenomOccupant; | ||
public ?string $telephoneOccupant; | ||
public ?string $telephoneSecondaireOccupant; | ||
public ?string $mailOccupant; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
élément d'objet personne
public ?string $typeProprietaire; | ||
public ?string $nomProprietaire; | ||
public ?string $prenomProprietaire; | ||
public ?string $adresseProprietaire; | ||
public ?string $codePostalProprietaire; | ||
public ?string $villeProprietaire; | ||
public ?string $telephoneProprietaire; | ||
public ?string $telephoneSecondaireProprietaire; | ||
public ?string $mailProprietaire; | ||
public ?string $proprietaireRevenuFiscal; | ||
public ?bool $proprietaireBeneficiaireRsa; | ||
public ?bool $proprietaireBeneficiaireFsl; | ||
public ?string $proprietaireDateNaissance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Élément d'objet personne
b90d14a
to
7450061
Compare
c9be2fe
to
542325a
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lecture et test OK
Ticket
#3307
Description
Créations de 2 routes sur l'API permettant de récupérer
Tests
Préparation
openapi.json
de spécification de l'API et l'importer dans postman.baseUrl
etbearerToken
et sauvegarder