-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(api) Pouvoir chercher les structures par SIREN #1074
Conversation
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.
LG ! Juste deux petites remarques 😉
url = reverse("api:siae-retrieve-by-siren", args=["444444444"]) | ||
response = self.client.get(url) | ||
self.assertEqual(response.status_code, 200) | ||
# self.assertEqual(type(response.data), list) |
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.
Tu as laissé des lignes commentées 😉
@classmethod | ||
def setUpTestData(cls): | ||
SiaeFactory(name="Une structure", siret="12312312312345", department="38") | ||
SiaeFactory(name="Une autre structure", siret="22222222222222", department="69") |
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'aurai peut-être changé les 5 derniers chiffres pour avoir des SIRET différents sur le même SIREN. Je pense que c'est plus réaliste.
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.
je vais faire ca dans une petite PR séparée 👌
et améliorer un peu cet endpoint par siret
81bfbd0
to
5a39ef8
Compare
Quoi ?
Autre demande d'API Entreprise (après la #955)
Avoir une URL pour récupérer les structures par siren (on avait déjà par siret)
/siae/siren/<siren>