danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf
GNU General Public License v2.0
413 stars 193 forks source link

Upload new revision content via API #1463

Closed kty0mka closed 11 months ago

kty0mka commented 11 months ago

Hi!

As I understand REST API Specification, it is possible to upload new file via API and it is possible to create new file revision.

Is it possible to create new revision with new file (attachment) content via REST API? In other words, it would be useful to upload new attachment, but commit it not to a new file, but to a new revision of existing file.

Thanks!

picman commented 11 months ago

Yes, it is. If the filename is identical, just a new revision of an existing document is created the same way as in GUI. (# 3. Upload a document in _extra/apiclient.sh)

kty0mka commented 11 months ago

Thanks! It was not obvious to me. Maybe it makes sense to add an explicit mention of this feature in the specification?

picman commented 11 months ago

I've updated the wiki page accordingly.