User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ruby:ministore:api-spec [2019-11-21 14:24]
ziggi
ruby:ministore:api-spec [2019-11-21 14:27] (current)
ziggi
Line 1: Line 1:
  
 =====ministore api spec===== =====ministore api spec=====
 +
 +три метода
 +  - upload
 +  - get info
 +  - download
 +
 +аутентификация:​ http basic
  
 ====upload, загрузка документа==== ====upload, загрузка документа====
Line 10: Line 17:
 <​file>​ <​file>​
 curl -v  -F app_id=some -F document_id=1234-56789 ​ -F file=@blob.bin ​ curl -v  -F app_id=some -F document_id=1234-56789 ​ -F file=@blob.bin ​
-     ​http://​user:​user@localhost:​8089/​api/​document/​upload+     ​http://​user:​user@ministore01.some.org/​api/​document/​upload
 </​file>​ </​file>​