pwitab / visma

A Python Client library for integration to Visma eAccounting, Visma eEkonomi
http://visma.readthedocs.io
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Support any field to be primary key #9

Open Krolken opened 6 years ago

Krolken commented 6 years ago

As of now in GET requests we assume that the attribute 'id' on a model is the primary key.

On some models in Visma API this is not the case. For example Account uses the account number as the key in the REST-path. /accounts/fiscal_year/number

This case also includes another case of adding path variables for special cases but that is covered in