Skip to content

Add a client for the REST API - #2

Merged
robbinjanssen merged 3 commits into
mainfrom
feature/rest-api
Nov 6, 2026
Merged

robbinjanssen merged 3 commits into
mainfrom
feature/rest-api

Conversation

@robbinjanssen

Copy link
Copy Markdown
Owner

The edge server also has a REST API with what MQTT lacks. InnergridApi:

  • logs in with an e-mail address and password of a user of the edge server, and logs in again once when the API rejects the token;
  • lists the spaces with their names (spaces());
  • changes the session of a charge point (set_charge_point_session): the charge strategy, the target energy, the departure time, the user and the claim. Only the given values are sent.

The charge point model also reads whether a session is claimed (claimed).

Tested against a real edge server: listing the spaces, and setting the target energy of a free charge point to its current value (the response is the session).

🤖 Generated with Claude Code

robbinjanssen and others added 3 commits November 5, 2026 15:54
InnergridApi logs in to the REST API of the edge server, lists the spaces
with their names, and changes the session of a charge point: the charging
strategy, the target energy, the departure time, the user and the claim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robbinjanssen robbinjanssen added the new-feature New features or options. label Nov 6, 2026
@robbinjanssen
robbinjanssen merged commit b3701a5 into main Nov 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant