rest

Module to make REST APIs by using function attributes

start/1

start the webserver serving the REST APIs available in the modules passed as parameter (an atom or a list of atoms), use default values for IP (127.0.0.1) and Port (8000)

start/3

start the webserver serving the REST APIs in Ip:Port available in the modules passed as parameter (an atom or a list of atoms)

loop/2

the handler of the requests, receive a request and find the handler, pass the parameters and return the result to the webserver

mime_from_path/1

return an atom representing the mime type of a file depending on it’s extension

mime/1

transform an atom describing a mime type to its string representation

rest_api/1

get the rest api of a module, Module is the module name as atom

Table Of Contents

Previous topic

mod

Next topic

struct

blog comments powered by Disqus