-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrsdl
1 lines (1 loc) · 2.48 KB
/
rsdl
1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><rsdl><description> Operations such as sorting an array of numbers, checking whether a number is prime or not, finding word frequency in a file are performed using this API. The API services offered by this app are named as prime, sort, and wordfreq, and are accessible at /api/prime, /api/sort, and /api/wordfreq. The operation that checks whether a number is prime or not, accepts input as positive integer value by using GET or POST parameters, and it yields a JSON-formatted result containing exactly one field: result. These field contain the result of the check operation. The operation that sorts array of numbers accepts input as array of numbers separated by comma using GET or POST parameters, and it yields a JSON-formatted result containing exactly one field: result. These field contain the result of the array of sorted numbers. Similarly, the operation that finds word frequency in a file accepts both file and a word string as inputs using GET or POST parameters, and it yields a JSON-formatted result containing exactly one field: result. These field contain the result of word frequency calculation.</description><version major="1" minor="0" build="0" revision="4"></version><links><link rel="get" href="/api/prime"><request><http_method>GET|POST</http_method><url><parameters_set><parameter type="xs:int" required="true"><name>number</name><value>Number to check whether it is prime or not and it should be positive integer</value></parameter></parameters_set></url></request><response><type>JSON format containing result as either "prime number" or "not a prime number"</type></response></link><link rel="get" href="/api/sort"><request><http_method>GET|POST</http_method><url><parameters_set><parameter type="xs:string" required="true"><name>array</name><value>Array of integers to be sorted entered as string seperated by comma</value></parameter></parameters_set></url></request><response><type>JSON format containing result of sorted array</type></response></link><link rel="get" href="/api/wordfreq"><request><http_method>GET|POST</http_method><url><parameters_set><parameter type="xs:base64" required="true"><name>file</name><value>Input file where you want to check a word frequency</value></parameter><parameter type="xs:string" required="true"><name>word</name><value>word to be checked</value></parameter></parameters_set></url></request><response><type>JSON format containing result of word frequency in a file</type></response></link></links></rsdl>