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
Next revision
Previous revision
ruby:ministore:api-spec [2019-11-21 14:07]
ziggi [download]
ruby:ministore:api-spec [2019-11-21 14:27]
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>​
  
Line 91: Line 98:
  
   * метод: GET   * метод: GET
 +  * если документ не найден,​ то возвращается "​HTTP/​1.1 404 Not Found" и тело нулевой длины.
  
 <​file>​ <​file>​