Start of an API
Endpoint for single component
Merge pull request #21 from manavo/api

API started