Skip to content

Latest commit

 

History

History
26 lines (11 loc) · 557 Bytes

README.md

File metadata and controls

26 lines (11 loc) · 557 Bytes

compile with :

g++ methods/methodBase.cpp methods/post.cpp methods/get.cpp dbo/pollSession.cpp -std=c++11 -lwt -lwthttp -lwtdbo -lwtdbosqlite3 -lboost_system pollMain.cpp pollResource.cpp -o bin/app

run with :

sudo bin/app --docroot . --approot . --http-address 0.0.0.0 --http-port 80

api blueprint :

http://docs.ahmadabdolkhanie.apiary.io/#reference/default/polls-api-root

base url :

localhost/api

usage example :

GET localhost/api/questions/1

note : you may use a software of your choice to send request but I used the chrome extension DHC