You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/rest.rst
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
========================
2
-
Using bepasty's REST-API
2
+
Using Bepasty’s RESTAPI
3
3
========================
4
4
5
-
The Rest-API enables you to upload and download files, as well as
6
-
retrieve informations about the file on the server.
5
+
The REST API enables you to upload and download files, as well as
6
+
retrieve information about the file on the server.
7
7
8
8
Currently the REST API provides the following API Endpoints::
9
9
@@ -20,14 +20,14 @@ Currently the REST API provides the following API Endpoints::
20
20
21
21
Authentication
22
22
==============
23
-
For endpoints that require non-default permissions, authentication can be done through http basic authentication. The user is ignored and the password is the key for the intended permissions.
23
+
For endpoints that require non-default permissions, authentication can be done through HTTP Basic authentication. The user is ignored and the password is the key for the intended permissions.
24
24
25
25
Errors
26
26
======
27
-
The error response from REST-API will set ``Content-Type:
28
-
application/json``, and body as JSON format like the following
29
-
example. (it was previously ``Content-Type: text/html; charset=utf-8``
30
-
and partial HTML page or plain string)
27
+
The error response from the RESTAPI will set ``Content-Type:
28
+
application/json``, and the body as JSON in the following
29
+
format. (It was previously ``Content-Type: text/html; charset=utf-8``
30
+
and a partial HTML page or a plain string.)
31
31
32
32
Example::
33
33
@@ -56,20 +56,20 @@ GET Response by the server:
56
56
MAX_BODY_SIZE: 1048576
57
57
}
58
58
59
-
This interface will give you important infos for uploading and
60
-
downloading files to your bepasty server. By now only the
61
-
MAX_BODY_SIZE will be delivered to you, as no more info is
59
+
This interface provides important information for uploading and
60
+
downloading files to your Bepasty server. For now, only
61
+
MAX_BODY_SIZE is provided, as no more information is
62
62
available.
63
63
64
64
MAX_BODY_SIZE
65
-
The maximum size of a post request's body. This is limited by
66
-
the webserver and other middleware. See the documentation for
65
+
The maximum size of a POST request body. This is limited by
66
+
the web server and other middleware. See the documentation for
67
67
more information. This also gives you the maximum size for the
68
68
chunked upload.
69
69
70
70
MAX_ALLOWED_FILE_SIZE
71
-
The maximum allowed filesize that can be stored on the
72
-
server. Files uploads bigger than this limit will be aborted
71
+
The maximum allowed file size that can be stored on the
72
+
server. File uploads bigger than this limit will be aborted
73
73
and the file on the server will be deleted.
74
74
75
75
Uploading a file
@@ -82,41 +82,41 @@ API Interface:
82
82
83
83
When uploading a file, chunked upload is mandatory. Check the
84
84
MAX_BODY_SIZE for the maximum chunk size that can be sent to the
85
-
server. The body of the post request contains the base64 encoded
85
+
server. The body of the POST request contains the Base64-encoded
86
86
binary of the file to be uploaded. (required permission:
87
87
:ref:`create <permissions>`)
88
88
89
89
POST Request by the client:
90
90
91
91
Post Request Body
92
-
Contains the base64 encoded binary of the file to be uploaded.
92
+
Contains the Base64-encoded binary of the file to be uploaded.
93
93
94
94
The following headers *can (cursive)* or **must (bold)** be
95
-
delivered by every post request to the server:
95
+
delivered by every POST request to the server:
96
96
97
97
**Content-Range**
98
-
The content-range header follows the specification by the w3c
98
+
The Content-Range header follows the specification by the W3C
0 commit comments