Skip to content

Commit

Permalink
/limit examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Feb 11, 2023
1 parent efb26cb commit ad1e833
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions test/limit.http
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

0 comments on commit ad1e833

Please sign in to comment.