Skip to content

ssmilin/society_maintence_backend

Repository files navigation

society_maintence_backend

All Entries will be under database 7miracle Collections name will be equal to societyname

Create NewReport

https://society-app-backend.herokuapp.com/expensereport/addnewreport

{	
  "month": "April2019",
  "societyname":"Greenpark"
}

Add/Update expense

https://society-app-backend.herokuapp.com/expensereport/addexpense

{
	"month": "April2019",
	"societyname":"Greenpark",
	"name":"Security",
	"amount":"8000"
}

Add/Update Income

https://society-app-backend.herokuapp.com/expensereport/addincome

SUBSCRIPTION-Add/update

{
	"month": "April2019",
	"name": "test",
	"amount": "2150",
	"type":"SUBSCRIPTION",
	"societyname":"Greenpark"
}

Other income -Add/update

{
	"month": "April2019",
	"name": "discount",
	"amount": "2150",
	"societyname":"Greenpark"
}

Add Member

https://society-app-backend.herokuapp.com/expensereport/addmember

{
    "name": "Ramesh",
    "age":"24",
    "societyname":"Greenpark"
}

Update Member

https://society-app-backend.herokuapp.com/expensereport/updatemember

{
	"id":"5c74d447d417c47538c237a2", //id of the member to update
	"updateobj":{"age":"94"}, 
	"societyname":"Greenpark",
	"month": "April2019"
}

Get Report for given month

https://society-app-backend.herokuapp.com/expensereport/getmonthlyreport?societyname=Greenpark&month=April2019

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published