Axis Customer Forum

It is currently Sun Jun 16, 2019 2:53 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Jan 07, 2019 7:40 pm 

Joined: Fri Jun 17, 2016 12:08 am
Posts: 15
I am trying to send an API call to our Access Control system. The PUT call should be to: http://localhost:18779/Infinias/IA/Doors
Body: username=__rulesengine__user__&password=_infiniasrules_&LockStatus=unlocked&doorIds=7&Duration=-1

When I test a GET call (http://localhost:18779/infinias/ia/door ... &doorids=7) It receives a proper response.

The API reference guide says that Data sent with a Post or Put request must be Form-UrlEncoded. I'm also unsure of what 'content type' should be selected in the popup for ACS.

Here is the RADL Excerpt:
Quote:
{"Name":"Unlock one or more doors"
"UnrealizedArguments":[{"FriendlyName":"Door Name"
"ActualName":"doorIds"
"Required":true
"MultiSelect":true
"Description":"The name of the door(s) you wish to unlock"
"RealizeUrl":"http://localhost:18779/Infinias/IA/doors/names/values?start=0&pagesize=100&format=json"}]
"RealizedArguments":[{
"FriendlyName":"Duration"
"ActualName":"duration"
"Required":true
"MultiSelect":false
"Values":null
"Description":"The number of seconds you wish to unlock the door(s). Use zero for infinite."}]
"Command":{
"Method":"PUT"
"Url":"http://localhost:18779/Infinias/IA/Doors"
"FixedArguments":"LockStatus=unlocked"}
"RadlId":2
"Radl":"http://localhost:18779/Infinias/IA/Doors/radl/2"}


Any information anyone can share would be greatly appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group