-
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
Feature/46 locatie nl api #24
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.
No real major issue TBH, just a few comments/suggestions
locaties = LocatieSerializer(many=True, read_only=True) | ||
locatie_ids = serializers.PrimaryKeyRelatedField( |
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.
Not entirely sure about this. I wonder how this is done in the other APIs
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.
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.
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.