rest api
refacotor rest api for article