Assignment-Backend developer

This assignment is regarding implementation of a global search feature. A custom endpoint is included which is accepting a keyword and giving out the search results from the entire database.

API Reference

Global Search Feature

  POST https://evening-waters-28547.herokuapp.com/api/search
Parameter Type Description
search string Required. keyword that has to be searched in the database

Fill Asset in database

  POST https://evening-waters-28547.herokuapp.com/api/asset
Parameter Type Description
name string Required. Name of the asset

Fill Department in database

  POST https://evening-waters-28547.herokuapp.com/api/department
Parameter Type Description
name string Required. Name of the department
asset string Required. id of the asset it is related to

Fill Project in database

  POST https://evening-waters-28547.herokuapp.com/api/project
Parameter Type Description
name string Required. Name of the project
department string Required. id of the department it is related to

Get all asset

  GET https://evening-waters-28547.herokuapp.com/api/asset

Get all department

  GET https://evening-waters-28547.herokuapp.com/api/department

Get all project

  GET https://evening-waters-28547.herokuapp.com/api/project

delete an asset

  DELETE https://evening-waters-28547.herokuapp.com/api/asset/{id}
Parameter Type Description
id string Required. Id of asset to delete

delete an department

  DELETE https://evening-waters-28547.herokuapp.com/api/department/{id}
Parameter Type Description
id string Required. Id of department to delete

delete an project

  DELETE https://evening-waters-28547.herokuapp.com/api/project/{id}
Parameter Type Description
id string Required. Id of project to delete