A Node.js application providing basic RESTful services.
Dependencies: The node-mysql module is used for MySQL access.
To run the server: node index.js
The included file /Test/Configurations-REST-soapui-project.xml is a SoapUI testing script.
API documentation:
List configurations: return a list of configurations
GET /configurations
Options:
sort= : Sort the output based on the field specified - name, hostname, port or username
count= : Maximum number of records to return per page (if not specified, the default is 10)
page= : The page of records to display, based on the count per page.
Insert a configuration
POST /configurations
Options:
The data to be inserted should be included in the POST data (i.e.: name=&hostname=&port=&username=)
Delete a configuration
DELETE /configurations/
Options:
is the 'name' field of the record to be deleted