Skip to content

kusiu/Rest-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#http://api.kusiu.com#

###Create article data:### app/console doctrine:schema:drop --force --full-database app/console doctrine:schema:update --force app/console doctrine:fixtures:load

###Get list of articles:### curl -i -X GET -H "Content-Type:application/json" 'http://api.kusiu.com/articles.json'

###Add new an article:### curl -i -X POST
-H "Content-Type:application/json"
-d
'{"title":"Article Title", "content":"Article Content"}'
'http://api.kusiu.com/articles.json'

###Add new answer of article by id:### curl -i -X POST
-H "Content-Type:application/json"
-d
'{"id":"1", "content":"Comment"}'
'http://api.kusiu.com/answers.json'

###Rate an article:### curl -i -X POST
-H "Content-Type:application/json"
-d
'{"id":"1", "value":5}'
'http://api.kusiu.com/rates.json'

###Front page that will allow us to write an article:### http://api.kusiu.com

###command that will send an email to the writer of an article if he has notifications from more than 24 hours(todo: logic):### app/console mail:author

About

Rest API which allow to create an article, answer to article, rate article and retrieve all articles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published