Created API for get and post requests at start page - for populating form