Skip to content
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

Plugin HTTP: Handle incoming POST and GET requests #2

Open
16 tasks
aschaeffer opened this issue Feb 18, 2023 · 0 comments
Open
16 tasks

Plugin HTTP: Handle incoming POST and GET requests #2

aschaeffer opened this issue Feb 18, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@aschaeffer
Copy link
Contributor

Goal

Make it possible to set reactive properties from external applications.

Tasks

  • Add a web resource provider for endpoint http
  • Handle GET Requests and return the value of the property
    • GET /http/entities/{uuid}/{property} ⇒ JSON Response
    • GET /http/entities/{uuid}/{property}/set/{value}
    • GET /http/{labelPath}/{property} ⇒ JSON Response
    • GET /http/{labelPath}/{property}/set/{value}
    • Error Return Code 403 if the property is immutable
    • Error Return Code 404 if the entity or the property does not exist
  • Handle PUT Requests and change the value of the property
    • PUT /http/entities/{uuid}/{property} ⇐ JSON Payload
    • PUT /http/{labelPath}/{property} ⇐ JSON Response
    • Error Return Code 400 if the data type does not match with the property data type
    • Error Return Code 403 if the property is immutable
    • Error Return Code 404 if the entity or the property does not exist

Use Cases

  • External UIs can read data via HTTP
  • External programs that can send HTTP requests
@aschaeffer aschaeffer added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 18, 2023
@aschaeffer aschaeffer transferred this issue from reactive-graph/plugins-core Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant