Skip to content

Support device access states and state notifications#91

Open
hubertp-ericsson wants to merge 6 commits intocamaraproject:mainfrom
hubertp-ericsson:hubertp-device-access-status
Open

Support device access states and state notifications#91
hubertp-ericsson wants to merge 6 commits intocamaraproject:mainfrom
hubertp-ericsson:hubertp-device-access-status

Conversation

@hubertp-ericsson
Copy link
Contributor

@hubertp-ericsson hubertp-ericsson commented Feb 5, 2026

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

This PR proposes to support asynchronous device access creation and device access lifecycle. It introduces a very simple state machine which captures the basic states of the device access of interest to the API consumer, namely: REQUESTED, GRANTED, and DENIED. Upon a POST request to create a device access the access enters into the REQUESTED state and a 201 response is returned. After that the device access will transition to GRANTED and/or DENIED depending on the results of backend operations. The state information is stored in the access resource, while state changes are notified (if requested) using the standard Camara notification mechanism.

Which issue(s) this PR fixes:

Fixes #40

Special notes for reviewers:

Changelog input

 Support for asynchronous events for device access creation and device access lifecycle.

Additional documentation

This section can be blank.

docs

tlohmar
tlohmar previously approved these changes Feb 7, 2026
Copy link
Contributor

@tlohmar tlohmar left a comment

Choose a reason for hiding this comment

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

Looks good.

@hubertp-ericsson
Copy link
Contributor Author

Here is the slide I showed in today's call.
camara-pr-device-access-states.pptx

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.

[Accesses API] POST operation is synchronous - may be there are use cases for async.

3 participants