Skip to content

Refactor requests#33

Merged
Quentame merged 11 commits intoProtoThis:masterfrom
Quentame:dsm/api_discovery
Apr 22, 2020
Merged

Refactor requests#33
Quentame merged 11 commits intoProtoThis:masterfrom
Quentame:dsm/api_discovery

Conversation

@Quentame
Copy link
Collaborator

@Quentame Quentame commented Apr 21, 2020

NEW

  • [DSM] Can GET any DSM API with synology_dsm.get(api: str, method: str, params: dict, **kwargs)
  • [DSM] Can POST any DSM API with synology_dsm.post(api: str, method: str, params: dict, data: dict, files: dict, **kwargs)
  • [DSM] raise SynologyDSMAPINotExistsException if the API does not exists
  • [DSM] raise SynologyDSMAPIErrorException if the API respond with an error
  • [DSM] raise SynologyDSMRequestException if there is a RequestException (mainly ConnectionError or SSLError) or a JSONDecodeError
  • [SynoDSMInformation] "SYNO.DSM.Info" API automatically fetched after login
  • [SynoDSMInformation] Add version property

BUG FIXES

  • [DSM] Fix DSM 5 login (I suppose, we used API version 6, DSM 5 maxVersion is 4)

BREAKING CHANGES

  • [DSM] dsm_version constructor param has been removed (APIs are now auto-discovered + DSM version is fetched with the "SYNO.DSM.Info" API)

IMPROVEMENTS

  • Add "Virtual Machine Manager API documentation (2015-2019)" to README

@Quentame Quentame added this to the 0.7.0 milestone Apr 21, 2020
@Quentame Quentame self-assigned this Apr 21, 2020
@Quentame Quentame force-pushed the dsm/api_discovery branch from 44be415 to eec4d9a Compare April 21, 2020 22:28
@Quentame Quentame marked this pull request as ready for review April 21, 2020 22:55
@Quentame Quentame merged commit 0622bcf into ProtoThis:master Apr 22, 2020
@Quentame
Copy link
Collaborator Author

Merging because will be used in HA, will release fixes if needed.

@Quentame Quentame deleted the dsm/api_discovery branch April 22, 2020 12:01
Quentame pushed a commit to Quentame/python-synology that referenced this pull request Aug 12, 2021
Bumps [reorder-python-imports](https://github.com/asottile/reorder_python_imports) from 2.3.6 to 2.4.0.
- [Release notes](https://github.com/asottile/reorder_python_imports/releases)
- [Commits](asottile/reorder-python-imports@v2.3.6...v2.4.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

1 participant