casa
casa copied to clipboard
API
Description We'd like to accomplish many things with mobile development like offline service workers and creating an iOS app but to do so we need our routes to work like an api.
- For every controller action that changes the database, make sure it supports a json format.
- Error check/sanitize parameters
- return a status of 500 if an error was encountered
- Write tests
- Document the api please edit the api readme in
doc/
Action list: Work In Progress List
- All Casa Admin
- [x] create
- [x] update
- [x] update_password
- Casa Admin
- [x] create
- [x] update
- [x] deactivate
- [x] activate
- Casa Case
- [x] create
- [x] update
- [x] deactivate
- [x] reactivate
- Casa Org (
app/controllers/all_casa_admins/casa_orgs_controller.rb
)- [x] create
- Casa Org (
app/controllers/casa_orgs_controller.rb
)- [x] update
- Case Assignments
- [ ] create
- [ ] unassign
Please do not do this all in a single pull request
I'm not sure about this idea, but I'd like to propose a solution. I'll start by POST /casa_cases
route
I'd like to know, why it is necessary, for example, can we use the respond_to with format
helper, in those controllers?
And if you like, we even can add this gem: https://github.com/heartcombo/responders to make the respond_to
blocks easier to handle
can we use the
respond_to with format
helper
That's originally what I had planned. I was just trying to get a list of all the routes that made changes to the database. Maybe I should look at each controller for a list.
can we use the
respond_to with format
helperThat's originally what I had planned. I was just trying to get a list of all the routes that made changes to the database. Maybe I should look at each controller for a list.
Nice, then we do not need that implementation and go with respond_to
helper. I'll adjust the pr
thanks I'll clean up the issue description too when I have a chance
Hey guys, I'm working on Casa Cases endpoints 😃
Hi, can I work on Casa Orgs endpoints ?
I actually created an issue regarding this, but the /casa_orgs endpoint should be a singular resource. It might make sense to fix that while working on it. That's #2919
Ok, first I will work on that one.
Hey guys, I'm working with casa_admin
endpoints :D
Hey guys, I'm working on the remaining CasaOrg
controller, and @thiantonello is working on the last one.
Let's finish this epic 🚀
That's not the complete list. Don't know when I'll have time to update it
I took care of the case assignments endpoints, I just need permission to create a branch on the repo.