1. 05 May, 2021 2 commits
  2. 03 May, 2021 2 commits
    • Trond Aasan's avatar
      CIM-58 Simplify expression · a0949cae
      Trond Aasan authored
      Use set comprehension instead of map()
      a0949cae
    • Trond Aasan's avatar
      CIM-58 Fix client · ba564661
      Trond Aasan authored
      * Fixes CIM-59, CIM-60 and CIM-61
      
      * Partial object updates are only partially supported.  Change logic
        to always serialise whole object, but exclude empty phone numbers.
      
      * Remove unused code
      
      * Validate models on assignment
      
      * Simplify types.  Remove constr fields, mypy don't understand them and
        CIM validates data anyway.
      
      * Use mixins to support optional functionality
      ba564661
  3. 21 Apr, 2021 1 commit
  4. 08 Apr, 2021 2 commits
    • Andreas Ellewsen's avatar
      Simplify response handling · 522cd1e6
      Andreas Ellewsen authored
      Instead of throwing json decoding errors when getting responses with
      error codes and text, we let the call method raise appropriate errors
      before trying to do the json decoding. Results in less code and easier
      error handling.
      522cd1e6
    • Andreas Ellewsen's avatar
      Remove token handling and change expected baseurl · e96ee1a0
      Andreas Ellewsen authored
      Having a separate token dict in addition to the handlers one makes
      things unnecessarily complex. If you want to add an api key you can
      simply add it as any other header.
      
      Since /webservices is always part of the url it's actually part of the
      base and should be handled as such.
      e96ee1a0
  5. 24 Nov, 2020 1 commit
  6. 19 Nov, 2020 1 commit
  7. 12 Nov, 2020 4 commits
  8. 05 Nov, 2020 5 commits
  9. 04 Nov, 2020 2 commits
  10. 26 Oct, 2020 1 commit
  11. 01 Oct, 2020 5 commits
  12. 25 Sep, 2020 1 commit
  13. 24 Sep, 2020 2 commits
  14. 22 Sep, 2020 3 commits
  15. 05 Aug, 2020 1 commit
    • Andreas Ellewsen's avatar
      Add simple http auth and fix custom endpoints · 7d4acece
      Andreas Ellewsen authored
      The client now accepts a tuple with username and password as argument on
      initialization.
      
      In the work of adding this it was noticed that the client overwrote the
      default values for the endpoints with None if they were not specified.
      The client now correctly overwrites the defaults only if alternatives are
      given. The tests have been modified accordingly.
      
      Added more default values to example-config.json
      7d4acece
  16. 18 Jun, 2020 1 commit
  17. 15 Jun, 2020 1 commit
    • Andreas Ellewsen's avatar
      Add option to disable overwrite · 1c64dbee
      Andreas Ellewsen authored
      Until now any person update would overwrite all fields. With this
      commit you can now turn off this feature, and instead only update the
      fields set on the Person object by setting overwrite argument for the
      post_person, update_person and delete_person methods to False.
      1c64dbee
  18. 29 May, 2020 1 commit
    • Andreas Ellewsen's avatar
      Make email regex better · 3ea7570d
      Andreas Ellewsen authored
      Instead of using a regex we use the pydantic email type expanded to
      allow for empty strings.
      
      Also adds a mixxing header with the api key
      3ea7570d
  19. 27 May, 2020 1 commit
    • Andreas Ellewsen's avatar
      Introduce the first version of the client · b5dad6ed
      Andreas Ellewsen authored
      Client:
       - contains methods for updating/creating and deleting persons
       - contains methods for getting update/delete schema
      
      Tests check:
       - models
       - client (both initializing and methods mentioned above)
       - endpoints
      
       Includes tox.ini and Jenkinsfile for easy running of tests of future
       pull requests.
      
      Resolves: CIM-3
      b5dad6ed