|
37 | 37 | content: |
38 | 38 | application/json: |
39 | 39 | schema: {} |
40 | | - example: "\n [\n {\n \"filename\": \"attachment-1.pdf\",\n \"url\": \"https://www.example.org/index.php?action=attachment&id=1\"\n },\n {\n \"filename\": \"attachment-2.pdf\",\n \"url\": \"https://www.example.org/index.php?action=attachment&id=2\"\n }\n ]" |
| 40 | + example: "\n [\n {\n \"filename\": \"attachment-1.pdf\",\n \"url\": \"https://www.example.org/attachment/1\"\n },\n {\n \"filename\": \"attachment-2.pdf\",\n \"url\": \"https://www.example.org/attachment/2\"\n }\n ]" |
41 | 41 | '404': |
42 | 42 | description: 'If the FAQ has no attachments.' |
43 | 43 | headers: |
@@ -290,7 +290,7 @@ paths: |
290 | 290 | content: |
291 | 291 | application/json: |
292 | 292 | schema: {} |
293 | | - example: "[\n {\n \"record_id\": 1,\n \"record_lang\": \"en\",\n \"category_id\": 1,\n \"record_title\": \"Is there life after death?\",\n \"record_preview\": \"Maybe!\",\n \"record_link\": \"/phpmyfaq/phpmyfaq/index.php?action=faq&cat=1&id=1&artlang=en\",\n \"record_updated\": \"20191010175452\",\n \"visits\": 3,\n \"record_created\": \"2018-09-03T21:30:17+02:00\"\n }\n ]" |
| 293 | + example: "[\n {\n \"record_id\": 1,\n \"record_lang\": \"en\",\n \"category_id\": 1,\n \"record_title\": \"Is there life after death?\",\n \"record_preview\": \"Maybe!\",\n \"record_link\": \"/phpmyfaq//content/1/1/en/is-there-life-after-death.html\",\n \"record_updated\": \"20191010175452\",\n \"visits\": 3,\n \"record_created\": \"2018-09-03T21:30:17+02:00\"\n }\n ]" |
294 | 294 | '404': |
295 | 295 | description: 'If the category has no FAQs.' |
296 | 296 | headers: |
@@ -368,7 +368,7 @@ paths: |
368 | 368 | content: |
369 | 369 | application/json: |
370 | 370 | schema: {} |
371 | | - example: "[\n {\n \"record_id\": 1,\n \"record_lang\": \"en\",\n \"category_id\": 1,\n \"record_title\": \"Is there life after death?\",\n \"record_preview\": \"Maybe!\",\n \"record_link\": \"/phpmyfaq/phpmyfaq/index.php?action=faq&cat=1&id=1&artlang=en\",\n \"record_updated\": \"20191010175452\",\n \"visits\": 3,\n \"record_created\": \"2018-09-03T21:30:17+02:00\"\n }\n ]" |
| 371 | + example: "[\n {\n \"record_id\": 1,\n \"record_lang\": \"en\",\n \"category_id\": 1,\n \"record_title\": \"Is there life after death?\",\n \"record_preview\": \"Maybe!\",\n \"record_link\": \"/phpmyfaq//content/1/1/en/is-there-life-after-death.html\",\n \"record_updated\": \"20191010175452\",\n \"visits\": 3,\n \"record_created\": \"2018-09-03T21:30:17+02:00\"\n }\n ]" |
372 | 372 | '404': |
373 | 373 | description: 'If the tag ID has no FAQs.' |
374 | 374 | headers: |
@@ -397,7 +397,7 @@ paths: |
397 | 397 | content: |
398 | 398 | application/json: |
399 | 399 | schema: {} |
400 | | - example: "[\n {\n \"date\": \"2019-07-13T11:28:00+0200\",\n \"question\": \"How can I survive without phpMyFAQ?\",\n \"answer\": \"A good question!\",\n \"visits\": 10,\n \"url\": \"https://www.example.org/index.php?action=faq&cat=1&id=36&artlang=de\"\n }\n ]" |
| 400 | + example: "[\n {\n \"date\": \"2019-07-13T11:28:00+0200\",\n \"question\": \"How can I survive without phpMyFAQ?\",\n \"answer\": \"A good question!\",\n \"visits\": 10,\n \"url\": \"https://www.example.org/content/1/36/de/how-can-i-survive-without-phpmyfaq.html\"\n }\n ]" |
401 | 401 | '404': |
402 | 402 | description: "If there's not a single popular FAQ." |
403 | 403 | headers: |
@@ -838,7 +838,7 @@ paths: |
838 | 838 | content: |
839 | 839 | application/json: |
840 | 840 | schema: {} |
841 | | - example: "\n [\n {\n \"id\": 1,\n \"lang\": \"en\",\n \"date\": \"2019-08-23T20:43:00+0200\",\n \"header\": \"Hallo, World!\",\n \"content\": \"Hello, phpMyFAQ!\",\n \"authorName\": \"phpMyFAQ User\",\n \"authorEmail\": \"user@example.org\",\n \"dateStart\": \"0\",\n \"dateEnd\": \"99991231235959\",\n \"active\": true,\n \"allowComments\": true,\n \"link\": \"\",\n \"linkTitle\": \"\",\n \"target\": \"\",\n \"url\": \"https://www.example.org/?action=news&newsid=1&newslang=de\"\n }\n ]" |
| 841 | + example: "\n [\n {\n \"id\": 1,\n \"lang\": \"en\",\n \"date\": \"2019-08-23T20:43:00+0200\",\n \"header\": \"Hallo, World!\",\n \"content\": \"Hello, phpMyFAQ!\",\n \"authorName\": \"phpMyFAQ User\",\n \"authorEmail\": \"user@example.org\",\n \"dateStart\": \"0\",\n \"dateEnd\": \"99991231235959\",\n \"active\": true,\n \"allowComments\": true,\n \"link\": \"\",\n \"linkTitle\": \"\",\n \"target\": \"\",\n \"url\": \"https://www.example.org/news/1/de/hallo-phpmyfaq.html\"\n }\n ]" |
842 | 842 | '404': |
843 | 843 | description: 'If no news are stored.' |
844 | 844 | headers: |
@@ -1078,7 +1078,7 @@ paths: |
1078 | 1078 | content: |
1079 | 1079 | application/json: |
1080 | 1080 | schema: {} |
1081 | | - example: "\n [\n {\n \"id\": \"1\",\n \"lang\": \"en\",\n \"category_id\": \"15\",\n \"question\": \"Why are you using phpMyFAQ?\",\n \"answer\": \"Because it is cool!\",\n \"link\": \"https://www.example.org/index.php?action=faq&cat=15&id=1&artlang=en\"\n }\n ]" |
| 1081 | + example: "\n [\n {\n \"id\": \"1\",\n \"lang\": \"en\",\n \"category_id\": \"15\",\n \"question\": \"Why are you using phpMyFAQ?\",\n \"answer\": \"Because it is cool!\",\n \"link\": \"https://www.example.org/content/15/1/en/why-are-you-using-phpmyfaq.html\"\n }\n ]" |
1082 | 1082 | '404': |
1083 | 1083 | description: 'If the search returns no results' |
1084 | 1084 | content: |
|
0 commit comments