Return all User activity in API users/:uid/activity#4231
Return all User activity in API users/:uid/activity#4231aaronschachter merged 1 commit intoDoSomethingArchive:devfrom aaronschachter:activity
Conversation
|
Code looks ok, but questions... |
|
Yep yep. We had agreed on not using names as |
|
TLDR I think it makes sense to have a little more of a game plan before we start refactoring the Drupal API of WHERE our API will/should actually be built. I can change this endpoint in particular to match just regular
Where the source campaign activity is stored (Drupal or Northstar) has been coming up in recent conversations i've been having with @jonuy as we're trying to spec out where and how to build required functionality for the mobile app. |
|
The reason I can change this endpoint in particular without any breakage is that isn't used by any of those apps, and only by the SlothKit iOS API wrapper for now. |
|
Gotcha. That makes sense. I think that since this endpoint won't cause breakage then it should definitely be updated to follow in line with what we decided at the meeting. We already know we need to update those other endpoints and take care doing it since some services are relying on them at the moment. But if this is an untouched endpoint right now then definitely go with new approach; one less to have to refactor later on. |
|
Yeah, plus it will provide some base object wrappers to use in the others as we refactor. it's just, you know, more work :) I'm debating whether or not this endpoint should be renamed from |
|
I think this needs further specification before I can really begin to tackle this, esp re: nesting different entieis per @DFurnes and @angaither comments in https://gist.github.com/weerd/40328cb6205c2de82db4#comment-1411792 and I'd like to propose we merge this as is now to unblock prototyping, and can begin developing a proper API once end results are completely specified. Potentially with a different API version to avoid breakage |
|
that works, I like the idea of v2 using the nested entities. |
|
Sweet! will merge. Just as a heads up, another PR will be coming to handle the functionality we need in #4238, which will also stick to just returning the Signup entities as is. |
Return all User activity in API users/:uid/activity

Makes
nidparameter optional. If not specified, endpoint returns all User Activity for the given uid.Closes #4230
GET http://dev.dosomething.org:8888/api/v1/users/current/activity.json
GET http://dev.dosomething.org:8888/api/v1/users/current/activity.json?nid=1334