/ArrayListRegisterService

Array List Register Service

Primary LanguagePython

ArrayListRegisterService

Version(Latest)

Last Release Version: v0.1.0 Last Release Date: September 5th, 2018

Environment Required

  1. Python 3.7+
  2. Linux/Unix Instance

Run Command of AaReyS Server on command prompt

  1. Aareys_Main.py <ip_address> <port_no> (In the ip_address creates the <port_no> & listens for clients)
  2. Aareys_Main.py (In the 127.0.0.1 ip creates the 2019 as default port & listens for clients)

GET API URLs List

  1. http://127.0.0.1:2018/server/info/version/
  2. http://127.0.0.1:2018/list/create/listName/item
  3. http://127.0.0.1:2018/list/insertItem/listName/item
  4. http://127.0.0.1:2018/list/updateItem/listName/item
  5. http://127.0.0.1:2018/list/getAllItem/listName
  6. http://127.0.0.1:2018/list/findItem/listName/item
  7. http://127.0.0.1:2018/list/getAll/
  8. http://127.0.0.1:2018/list/deleteItem/listName/item
  9. http://127.0.0.1:2018/list/delete/listName/
  10. http://127.0.0.1:2018/list/deleteAll/
  11. http://127.0.0.1:2018/queue/create/queueName/item
  12. http://127.0.0.1:2018/queue/put/queueName/item
  13. http://127.0.0.1:2018/queue/get/queueName
  14. http://127.0.0.1:2018/queue/isEmpty/queueName
  15. http://127.0.0.1:2018/queue/getAll/
  16. http://127.0.0.1:2018/queue/deleteItem/
  17. http://127.0.0.1:2018/queue/delete/queueName
  18. http://127.0.0.1:2018/queue/deleteAll/

Python Package References

  1. socket
  2. threading
  3. socketserver
  4. queue

Running py Script on command prompt to open URL

  1. import urllib2
  2. import json
  3. import os, time
  4. def callRequest(urlStr):
  5.    response = urllib2.urlopen(urlStr)
    
  6.    #print response.info()
    
  7.    jsonString = response.read()
    
  8.    response.close()
    
  9.   	dictdump = json.loads(jsonString)
    
  10.   return dictdump['response']
    
  11.   response = callRequest('http://127.0.0.1:2018/server/info/version/')
    
  12.   print response