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
- Update usage to include plone-client in the examples.
- Add narrative text to explain each example.
- Change headings to be more descriptive of their content.
- Add missing responses to inline examples.
- Fix broken test after editing `usage.rst`
This chapter displays reStructuredText markup examples and their renderings.
6
+
7
+
.. important::
8
+
9
+
The request and the response must be separated by at least two blank lines, and the first line in the response must start with the string ``HTTP`` followed immediately by either a forward slash ``/`` or space character.
3
10
4
11
5
12
Examples with inline sources
6
13
----------------------------
7
14
8
-
Example 1
9
-
^^^^^^^^^
15
+
The following examples use reStructuredText markup with the request and response sources inline with the page.
16
+
10
17
11
-
Code
12
-
````
18
+
HTTP with slash and version
19
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+
21
+
The following example contains an HTTP ``GET`` request.
22
+
It shows the response starting with ``HTTP`` followed by a forward slash, the HTTP version, and the HTTP response code.
or with inline response starting with just "HTTP " without the HTTP version:
131
+
HTTP with space, no version
132
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
133
+
134
+
The following example is exactly the same as the previous one, except the response starts with ``HTTP`` without a slash and HTTP version, followed by a space and the HTTP response code.
"description": "Congratulations! You have successfully installed Plone.",
165
+
"effective": null,
166
+
"exclude_from_nav": false,
167
+
"expires": null,
168
+
"id": "front-page",
169
+
"language": "",
170
+
"modified": "2016-01-21T01:24:11+00:00",
171
+
"parent": {
172
+
"@id": "http://localhost:8080/Plone",
173
+
"@type": "Plone Site",
174
+
"description": "",
175
+
"title": "Plone site"
176
+
},
177
+
"relatedItems": [],
178
+
"review_state": "private",
179
+
"rights": "",
180
+
"subjects": [],
181
+
"table_of_contents": null,
182
+
"text": {
183
+
"content-type": "text/plain",
184
+
"data": "If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.",
0 commit comments