-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: let the modified time be changeable #4
Conversation
Note to myself: this also adds favorite functionality |
* @param boolean $favorite | ||
* @return DataResponse | ||
*/ | ||
public function update($id, $content=null, $favorite=null) { | ||
public function update($id, $content=null, $modified=0, $favorite=null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this defaults to 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If modified
is not stated in the request, the behavior is the same as before of my changes: the mtime
of the note's file is set to the current date/time.
Therefore, my changes of the API are totally backward compatible. However, the API documentation has to be revised. But the wiki has not been transferred, yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
bbb3935
to
96f7598
Compare
96f7598
to
7d914c8
Compare
I'm done -- from my site, this can be merged. |
Looks good to me. |
Yeap, i have already subscribed this issue :) Will have a look at implementation when i have some free time |
Can this be merged, now? |
@stefan-niedermann ping |
LGTM 👍 |
Awesome! Happy we got this in! 🎉 |
It will close owncloud/notes#247:
Tasks
create
, refactoring