<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>Dear Oliver,<br><br>Thank you very much for your answer. I will have a look at your wrapper.<br><br>The problem is I have a CRM i need to create presets from. It comes with an HTTP GET/POST based integration method, but I would need to use PUT/DELETE request types to manipulate presets through the API. I am trying to figure the easiest way to achiveve that.<br><br>I do not have coding skills so my options are limited.<br><br>Kind regards,<br><br>Miguel<br><br><div><br></div><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Oliver Kraitschy" <oliver@okraits.de><br><b>To: </b>noc@gibfibrespeed.net, "Community support for GenieACS users" <users@lists.genieacs.com><br><b>Cc: </b>"noc@gibfibrespeed.net" <mberniz@gibfibrespeed.net><br><b>Sent: </b>Friday, 9 December, 2016 8:27:38 AM<br><b>Subject: </b>Re: Encoding API calls in URL format<br><br>Hello,<br><br>no, it isn't possible in a simple way. The API only accepts requests in <br>the syntax described in the wiki.<br><br>What are you trying to achieve?<br><br>If you want to use the API in a more simple way, you have to write a <br>wrapper for it.<br><br>I did that, you can check it out on github:<br><br>https://github.com/TDT-GmbH/python-genieacs<br><br>Greetings,<br>Oliver<br><br>Am 08.12.2016 20:10, schrieb noc@gibfibrespeed.net:<br>> Hello everyone,<br>> <br>> Is it possible to encode API calls into a simple URL format?<br>> <br>> For example, I need to turn curl -i<br>> 'http://localhost:7557/presets/783d5b024367-DATA' -X DELETE into<br>> http://something<br>> <br>> or<br>> <br>> curl -i 'http://172.16.5.19:7557/presets/783d5b024367-DATA' \<br>> -X PUT \<br>> --data '{ "weight": 1, "precondition":<br>> "{\"summary.serialNumber\":\"783d5b024367\", \"_tags\":\"fase1\"}",<br>> "configurations": [ { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username",<br>> "value": "ps4" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password",<br>> "value": "ps4" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.NATEnabled",<br>> "value": "true" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.X_BROADCOM_COM_FirewallEnabled",<br>> "value": "true" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PPPAuthenticationProtocol",<br>> "value": "AUTO_AUTH" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.X_BROADCOM_COM_IfName",<br>> "value": "ppp0.0" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.X_BROADCOM_COM_VlanMuxID",<br>> "value": "200" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.X_BROADCOM_COM_VlanMux8021p",<br>> "value": "7" }, { "type": "value", "name":<br>> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Enable",<br>> "value": "true" }, { "type": "value", "name":<br>> "InternetGatewayDevice.Layer3Forwarding.X_BROADCOM_COM_DefaultConnectionServices",<br>> "value": "ppp0.0" }, { "type": "value", "name":<br>> "InternetGatewayDevice.X_BROADCOM_COM_NetworkConfig.DNSServers",<br>> "value": "8.8.8.8,8.8.4.4" } ] }'<br>> <br>> into http://something<br>> <br>> Is it possible to do it in a simple way?<br>> <br>> Thanks in advance,<br>> <br>> Miguel<br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.genieacs.com<br>> http://lists.genieacs.com/mailman/listinfo/users<br><br></div><br></div></body></html>