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

Add communication semaphore class #9

Open
harrydehix opened this issue Jan 7, 2025 · 1 comment
Open

Add communication semaphore class #9

harrydehix opened this issue Jan 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@harrydehix
Copy link
Contributor

harrydehix commented Jan 7, 2025

This class is an abstraction for http requests to the backend. Every response is typesafe!
Changes in the backend have to get reflected in the implementation of this class.
Example usage:

API.initialize("localhost:3000");
const weatherStations = await API.getAvailableWeatherStations();
const currentSensorData = await API.getCurrentSensorValues(globals.selectedWeatherStation.slug);
const sessionToken = await API.adminLogin(username, password);
...
@harrydehix harrydehix added the enhancement New feature or request label Jan 8, 2025
@harrydehix
Copy link
Contributor Author

At first there should be a dummy implementation which returns fixed values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant