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

New endpoints for VUI web API #2910

Merged
merged 29 commits into from
Mar 22, 2022

Conversation

davidraker
Copy link
Contributor

Description

Added enabled, running, status, and tag endpoints. Added documentation for these and improved installation documentation, including for setting up the web-users.json file.

Fixes # (issue)
#2862
#2865
eclipse-volttron/volttron-lib-web#2
eclipse-volttron/volttron-lib-web#3
eclipse-volttron/volttron-lib-web#4
eclipse-volttron/volttron-lib-web#5
eclipse-volttron/volttron-lib-web#6
eclipse-volttron/volttron-lib-web#7
eclipse-volttron/volttron-lib-web#18
eclipse-volttron/volttron-lib-web#21
eclipse-volttron/volttron-lib-web#22
eclipse-volttron/volttron-lib-web#23
eclipse-volttron/volttron-lib-web#28
eclipse-volttron/volttron-lib-web#29
eclipse-volttron/volttron-lib-web#30
eclipse-volttron/volttron-lib-web#31

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Tests for all new functionality are included in test_vui_endpoints.py.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Gokarna Jung Bhandari and others added 26 commits February 8, 2022 22:07
Added enabled endpoints and test to vui_endpoints.
# Conflicts:
#	volttrontesting/platform/web/test_vui_endpoints.py
…be more clear and flexible for any future additions.
# Conflicts:
#	volttron/platform/web/vui_endpoints.py
…ments and unused variables. Removed body of 204 responses.
@craig8 craig8 assigned craig8 and unassigned craig8 Mar 5, 2022
@craig8 craig8 self-requested a review March 5, 2022 01:53
Copy link
Contributor

@craig8 craig8 left a comment

Choose a reason for hiding this comment

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

Not done yet, but so far so good.

web-ssl-cert = /home/volttron/.volttron/certificates/certs/platform_web-server.crt
web-ssl-key = /home/volttron/.volttron/certificates/private/platform_web-server.pem

The ``vctl`` tool may be used to make the changes to the $VOLTTRON_HOME/config file by choosing "Y" for the "Is this
Copy link
Contributor

Choose a reason for hiding this comment

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

vcfg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. I make this typo every time to try to use it on the command line too....


::

GET https://localhost:8443/vui/
Copy link
Contributor

Choose a reason for hiding this comment

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

should be here if we made the bind-web-address to the hostname.

We also need to make sure that hostname is resolvable in order for this to all work the way we want it to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not 100% sure I understand this comment completely, but I've made some changes to the text here to try to address it. Hopefully these address what you were looking for.

- `Devices <device-endpoints.html>`_
- `Historians <historian-endpoints.html>`_
- `Pubsub <pubsub-endpoints.html>`_
- `Authentication <authentication-endpoints.html>`_: Endpoints for authenticating to the the API.
Copy link
Contributor

Choose a reason for hiding this comment

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

I am pretty sure you should leave off the html and just have the url be the _target in the top of the file. for the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@craig8 craig8 self-assigned this Mar 10, 2022
@craig8 craig8 merged commit c378137 into VOLTTRON:develop Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants