ameypotnis / campus-service

2 stars 7 forks source link

Add CRUD to master data #6

Open ameypotnis opened 8 years ago

ameypotnis commented 8 years ago

Develop an api to CRUD master data create (bulk records) /api/master body = [{ "type" : "standard", "value" : "BE" }, { "type" : "standard", "value" : "TE" }, { "type" : "branch", "value" : "CS" }]

update /api/master/branch/CS body = { "type" : "branch", "value" : "EL" }

getAll /api/master/standard response = ["TE", "BE"]

delete /api/master/branch/CS

indrajeet183 commented 8 years ago

For this I have to crate one more class and controller right ? or I'm still not clear what I've to do?

ameypotnis commented 8 years ago

you are right, create master class, table and controller

indrajeet183 commented 8 years ago

how to get only branch or standard in List? First find all records by type then save it to one list(List) then extract branch or standard and add it to another list?

indrajeet183 commented 8 years ago

for updating and deleting i have to create my own function?

ameypotnis commented 8 years ago

right