Skip to content
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

Feature/46 locatie nl api #24

Merged
merged 8 commits into from
Jan 6, 2025
Merged

Feature/46 locatie nl api #24

merged 8 commits into from
Jan 6, 2025

Conversation

Floris272
Copy link
Contributor

Changes

  • Adds locaties app consisting of the models Locatie, Organisatie & Contact.

  • Removed method to add coordinates to locations based on address for now, also changed db to postgres instead of postgis because of this.

  • Location & Organisation use the same abstract base model, because a location should have contact information & an organisation address details. Location & Organisation should be kept separate.

  • Some other fields will be added to organisation & Location in a later PR.

@Floris272 Floris272 linked an issue Jan 2, 2025 that may be closed by this pull request
@Floris272 Floris272 requested a review from Coperh January 2, 2025 10:35
Copy link

@Coperh Coperh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real major issue TBH, just a few comments/suggestions

Comment on lines +48 to +49
locaties = LocatieSerializer(many=True, read_only=True)
locatie_ids = serializers.PrimaryKeyRelatedField(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure about this. I wonder how this is done in the other APIs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open zaak uses an array of URI's for request and responses. see besluittypen of resultaattypen.

I could add another endpoint later that returns the product_type with just ids or uri's.

src/open_producten/locaties/models/contact.py Outdated Show resolved Hide resolved
src/open_producten/locaties/admin/contact.py Outdated Show resolved Hide resolved
src/open_producten/locaties/admin/organisatie.py Outdated Show resolved Hide resolved
@Floris272 Floris272 merged commit 31c2fc4 into master Jan 6, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nederlandstalige API + Datamodel
2 participants