-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efb26cb
commit ad1e833
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Name: REST Client | ||
# Id: humao.rest-client | ||
# Description: REST Client for Visual Studio Code | ||
# Version: 0.21.3 | ||
# Publisher: Huachao Mao | ||
# VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=humao.rest-client | ||
|
||
# You should use environment vars (https://marketplace.visualstudio.com/items?itemName=humao.rest-client#environment-variables) for these | ||
# but you can also set here if needed (just don't check in!) | ||
|
||
#@baseUrl = http://openevse.local | ||
|
||
#@ssid = your_ssid | ||
#@pass = your_password | ||
#@apikey = your_key | ||
|
||
### | ||
|
||
# Get the EVSE limits | ||
GET {{baseUrl}}/limits HTTP/1.1 | ||
|
||
### | ||
|
||
POST {{baseUrl}}/limits HTTP/1.1 | ||
|
||
{ | ||
"type": "time", | ||
"value": 30 | ||
} | ||
|
||
### | ||
|
||
POST {{baseUrl}}/limits HTTP/1.1 | ||
|
||
{ | ||
"type": "energy", | ||
"value": 30 | ||
} | ||
|
||
### | ||
|
||
# Remove the EVSE limits | ||
DELETE {{baseUrl}}/limits HTTP/1.1 | ||
|