Commit Graph

21 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7ab9a10a6c add copyright notices 2019-07-04 13:00:43 +02:00
Benjamin Dauvergne 3fae61924c urls: allow use of django-debug-toolbar (fixes #22945) 2018-04-03 15:08:22 +02:00
Jean-Baptiste Jaillet fe873ff083 add oauth2 access to get and put a document (#14147) 2017-11-06 17:37:00 +01:00
Frédéric Péters 0c64f7ecf5 include (experimental) editable metadata on user documents (#19381) 2017-10-16 15:09:58 +02:00
Frédéric Péters 944669be12 misc: remove usage of django.conf.urls.patterns (#16055) 2017-05-13 16:27:58 +02:00
Benjamin Dauvergne 772f211437 remove old metadata web service 2016-04-06 11:51:26 +02:00
Benjamin Dauvergne 60e2db5736 add ending slash to urlpatterns 2016-03-31 22:03:51 +02:00
Benjamin Dauvergne 804cf6ba63 remove validation view (#10375) 2016-03-28 03:28:54 +02:00
Benjamin Dauvergne c286fd517a create thumbnails (fixes #10456) 2016-03-28 03:28:54 +02:00
Benjamin Dauvergne a302008b4b add validation API (fixes #10375)
- a serializer for referring to an user factorized with the push document API
- add common mixin for handling validation errors and successfull results
- add common fixtures for writing tests
2016-03-28 03:28:10 +02:00
Frédéric Péters 0955b36b13 api: add a new /api/documents/recently-added endpoint (#9971) 2016-02-12 19:23:50 +01:00
Frédéric Péters 1d3228f9f9 general: add API to push documents (#7080) 2016-02-12 19:23:30 +01:00
Benjamin Dauvergne f166d3fbe3 add validation of documents (fixes #8169)
User can validate some document as of being of a certain type, and
attach metadata to this validation event.
2015-10-29 11:36:47 +01:00
Serghei Mihai 324c7ab8d9 general: use separate view and template for document pick (#7231) 2015-07-19 21:22:15 +02:00
Serghei Mihai e4950e141d serve static in debug mode 2015-07-09 10:13:38 +02:00
Benjamin Dauvergne 36437f440b Revert "Add a send-to view (fixes #7080)"
This reverts commit 651681aa6e.
2015-05-18 10:48:59 +02:00
Benjamin Dauvergne 651681aa6e Add a send-to view (fixes #7080)
To you it, make a POST using the multipart/form-data content type on

 /send-to/?email=<email-of-target-user>

Files are transmitted in the 'documents' fields of multipart/form-data body.
Each file must have a filename given in its content-disposition header.
Example:

POST /send-to/?email=john.doe@exampke.com HTTP/1.1
Host: localhost:8000
Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266
Content-Length: xxx

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="documents"; filename="attachment1.txt"
Content-Type: text/plain

Content of a.txt.

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="documents"; filename="attachment2.html"
Content-Type: text/html

<!DOCTYPE html><title>Content of a.html.</title>

-----------------------------9051914041544843365972754266--
2015-05-18 10:48:43 +02:00
Serghei Mihai d7fcb4227d import missing views 2015-04-10 16:22:28 +02:00
Serghei Mihai 5ca37d4008 mellon authentication support added (#6928) 2015-04-10 12:16:01 +02:00
Benjamin Dauvergne a5849218a3 Implement fargo 2015-03-06 22:56:22 +01:00
Benjamin Dauvergne cdd3364133 Initialize fargo 2015-02-13 14:58:25 +01:00