Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History of file src/json_wiki.c at check-in 2e41514fb754131b
|
2024-02-02
| ||
| 22:18 | Remove trailing whitespace from non-external C files. file: [df0c1612d9] check-in: [7db0a2d910] user: danield branch: fix-overlength-lines, size: 20670 | |
| 16:26 | Fix lines over 80 characters long, excluding external source files and @-lines. file: [156299c0f3] check-in: [942f691b39] user: danield branch: fix-overlength-lines, size: 20671 | |
|
2023-01-19
| ||
| 01:01 | Add missing 'void' to no-arg function decls and impls throughout the JSON API. (In my defense: the distinction between f(void) and f() was unknown to me at the time that code was written.) file: [b91dc896ee] check-in: [632dfd26dd] user: stephan branch: json-settings-command, size: 20569 | |
|
2022-01-25
| ||
| 19:36 | Corrected parsing of /json-mode POST data in TLS mode. Extended /json/wiki/preview to support a mimetype option. file: [32a902096d] check-in: [7f5877e843] user: stephan branch: trunk, size: 20517 | |
|
2021-09-06
| ||
| 20:51 | Begin adding value that used to be function arguments into the DiffConfig object. This check-in deals with the pRe parameter. file: [3cc84b5142] check-in: [bdb4bfaa3a] user: drh branch: diff-config, size: 19693 | |
|
2021-06-04
| ||
| 12:32 | Tweaked the various wiki page list queries to ensure that they do not include tags named wiki-* unless those tags appear to refer to a wiki page. Historically, the tag command has allowed entry of such tags and at least one is known to exist in another tree. file: [99f6a7d8bd] check-in: [4218b20031] user: stephan branch: trunk, size: 19685 | |
|
2020-08-24
| ||
| 04:44 | Applied fix from [5244a548] to /json/wiki/list. file: [287d1628a7] check-in: [5a568d8b1f] user: stephan branch: trunk, size: 19564 | |
|
2017-01-25
| ||
| 01:00 | The default MIME type for JSON wiki text should be 'text/x-fossil-wiki', not 'text/plain'. file: [67ce76b80f] check-in: [58dd538355] user: mistachkin branch: trunk, size: 19510 | |
|
2016-11-07
| ||
| 01:29 | Remove some tabs and end-of-line whitespace file: [d82b77953b] check-in: [bf9669f55e] user: andygoth branch: trunk, size: 19502 | |
|
2016-10-18
| ||
| 21:55 | Make the new wiki MIME type handling more consistent with the existing code. file: [492aa680b8] check-in: [0dc1187e79] user: mistachkin branch: jsonWikiMimeTypes, size: 19517 | |
| 08:22 | Enhancements to wiki MIME types supported for the JSON API. file: [5928a25dc6] check-in: [7a14176ee0] user: mistachkin branch: jsonWikiMimeTypes, size: 19450 | |
|
2016-04-18
| ||
| 19:18 | Sanitize the mimetypes on both the CLI and json. Allow more friendly names for the supported mimetypes as well as the formal mimetypes file: [6a3666cb18] check-in: [7ed9c7e4a9] user: dave.vines branch: technoteattachcli, size: 18663 | |
| 08:17 | add TECHNOTEID to fossil wiki commit and allow creation of multiple tech notes with the same timestamp (as already permitted by the GUI). file: [2cb77871dd] check-in: [aeaef8fbb1] user: dave.vines branch: technoteattachcli, size: 18615 | |
|
2016-02-06
| ||
| 19:17 | Swapped incorrect diff argument order for /json/wiki/diff. file: [44f0ee2d06] check-in: [08197f9634] user: stephan branch: trunk, size: 18618 | |
|
2014-10-20
| ||
| 15:01 | Add a custom static analysis program that verifies the arguments to printf-style varargs routines used in Fossil. Adjust the source code to be more robust for printf format errors and to fix a few minor problems found by the static checker. file: [fca83828f0] check-in: [0a7e326fa4] user: drh branch: compile-time-print-checking, size: 18618 | |
|
2014-09-18
| ||
| 22:02 | Experimental changes to permit easier debugging of the moderation subsystem. file: [afd597bc0a] check-in: [bcb444360a] user: mistachkin branch: please-review, size: 18620 | |
|
2014-05-30
| ||
| 18:04 | Renamed --format|-F to --mimetype|-M. Stumbled across a char-is-signed assumption and replaced it with (int). file: [7c3ea7255e] check-in: [918d07bfac] user: stephan branch: wiki-keep-mimetype, size: 18617 | |
|
2014-05-14
| ||
| 16:39 | Added --format MIMETYPE flag to (wiki create|commit) and /json/wiki/save. file: [8964031a7d] check-in: [8f2d9e6923] user: stephan branch: wiki-keep-mimetype, size: 18620 | |
|
2014-03-17
| ||
| 13:12 | Eliminate DIFF_INLINE flag (which is 0 anyway, no longer necessary). Strip end-of-line CR's in json_wiki_diff page as well. file: [12bbe52fce] check-in: [e6309e051b] user: jan.nijtmans branch: trunk, size: 18517 | |
|
2014-03-07
| ||
| 13:11 | Combine ANN flags and DIFF flags into a single 64-bit variable, where appropriate. Make DIFF_STRIP_EOLCR a separate flag, as this flag does more than the other whitespace-related flags. Merge trunk. file: [ceb1fd69d1] check-in: [da205cf44b] user: jan.nijtmans branch: strip-trailing-cr, size: 18531 | |
|
2013-10-04
| ||
| 09:30 | Better error-message in case of "manifest file is malformed" file: [3ef3369d91] check-in: [1eb438d61a] user: jan.nijtmans branch: pending-review, size: 18512 | |
|
2013-01-02
| ||
| 00:58 | Enhance the diff logic so that it can suppress differences that do not match a regular expression. This capability is so far only exposed on the test-diff command. file: [58841d7f80] check-in: [97a7b924c0] user: drh branch: trunk, size: 18503 | |
|
2012-11-04
| ||
| 12:59 | Fix typos. file: [4c38b03f33] check-in: [45065c5c28] user: dmitry branch: spelling, size: 18500 | |
|
2012-08-29
| ||
| 13:57 | Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [ef0dcd5cac] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 18500 | |
|
2012-08-20
| ||
| 19:01 | Expand the "diffFlags" variable to 64-bits in order to accommodate new options to the various "diff" commands. file: [af5fdc8083] check-in: [2b1767500e] user: drh branch: trunk, size: 18501 | |
|
2012-07-13
| ||
| 15:06 | Several minor internal cleanups to the json code which i thought i had committed last week :/. file: [c1e4ba2b53] check-in: [055dfb1223] user: stephan branch: trunk, size: 18501 | |
|
2012-06-29
| ||
| 15:59 | Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". file: [c3ce7464b5] check-in: [0328d68181] user: drh branch: sqlite4, size: 18375 | |
|
2012-06-27
| ||
| 12:30 | Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. file: [1e3224a8bd] check-in: [6823912746] user: drh branch: sqlite4, size: 18374 | |
|
2012-06-19
| ||
| 13:04 | Fix several MSVC compiler warnings, including a couple C99-isms. file: [bd7d661260] check-in: [80bfcee892] user: mistachkin branch: trunk, size: 18374 | |
|
2012-06-11
| ||
| 17:33 | merge trunk again... (previous merge was not from latest trunk from fossil-scm.org) file: [249d702d58] check-in: [7a57ab6465] user: mgagnon branch: mgagnon_fix, size: 18416 | |
| 17:23 | Merge in Trunk... file: [b043b231de] check-in: [c109e66db5] user: mgagnon branch: mgagnon_fix, size: 18414 | |
|
2012-04-28
| ||
| 08:03 | Refinements to the new hyperlink logic and spider defense. file: [8b0b032bf9] check-in: [d9c8a7dd73] user: drh branch: spider-defense, size: 18374 | |
|
2012-03-29
| ||
| 18:24 | Added -i/--invert option to /json/wiki/list --glob/--like flags. file: [5a4b409a99] check-in: [757cf364a9] user: stephan branch: trunk, size: 18372 | |
| 14:54 | Add vim modline everywhere file: [ad62d9cdcb] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 18249 | |
|
2012-03-25
| ||
| 03:10 | Added --glob and --like options to /json/wiki/list, to filter the list server-side. file: [4a921219e1] check-in: [06cd311c17] user: stephan branch: trunk, size: 18207 | |
|
2012-03-24
| ||
| 12:32 | /json/wiki: s/contentLength/size/ and s/lastSavedBy/user/, for consistency. Interface-incompatible change. file: [ce7fad50de] check-in: [c78773b2fd] user: stephan branch: trunk, size: 17771 | |
|
2012-03-18
| ||
| 23:44 | Fix compiler warnings and update custom makefile. file: [4f24db9dae] check-in: [43631b087b] user: mistachkin branch: trunk, size: 17805 | |
| 03:47 | Removed some special-case handling of "name" param (no longer needed). file: [d0125b5cda] check-in: [34fc6f098f] user: stephan branch: trunk, size: 17894 | |
|
2012-03-10
| ||
| 17:48 | Added /json/wiki/preview. file: [58b7f9d9b2] check-in: [0165fa184e] user: stephan branch: trunk, size: 18224 | |
| 16:47 | minor internal refactoring of /json/wiki/get in prep for /json/wiki/preview. file: [28903da012] check-in: [73816973fb] user: stephan branch: trunk, size: 17191 | |
|
2012-03-09
| ||
| 20:16 | Fixed a logic bug which caused /json/wiki/create to not be able to create a new page. file: [a5ab5c56c4] check-in: [64c2ec012c] user: stephan branch: trunk, size: 16488 | |
|
2012-03-04
| ||
| 19:03 | Fixed 2 swapped error messages. Added /json/wiki/diff button to demo page. file: [3d5a15aaa8] check-in: [1578ba3441] user: stephan branch: trunk, size: 16461 | |
| 18:41 | Added first go at /json/wiki/diff. Not yet configurable but proves the concept. file: [ba05a07670] check-in: [c6c38a522f] user: stephan branch: trunk, size: 16461 | |
| 17:29 | /json/wiki/get now supports uuid=string option to specify a specific version of the page. Response now includes the parent version's uuid. file: [d580d79519] check-in: [6f2a51602e] user: stephan branch: trunk, size: 13853 | |
|
2012-03-02
| ||
| 17:52 | /json/artifact/WIKI_UUID now supports the --format options from /json/wiki/get. file: [169318f70a] check-in: [2cbe686c30] user: stephan branch: trunk, size: 12831 | |
| 17:23 | /json/artifact/WIKI_UUID now returns the requested wiki page version instead of the most recent one. file: [003cc36808] check-in: [accd6f3df6] user: stephan branch: trunk, size: 12258 | |
|
2012-02-23
| ||
| 11:32 | Fix warnings in json support code (unused variables, unused label, etc). file: [77ba03d0bf] check-in: [86f6e675eb] user: mistachkin branch: jsonWarnings, size: 12481 | |
|
2012-02-19
| ||
| 16:42 | Added -verbose flag to /json/wiki/list, which returns the metadata for all pages but not their content. file: [df24784693] check-in: [fe99188e60] user: stephan branch: trunk, size: 12577 | |
|
2012-02-17
| ||
| 12:43 | fixed a potential crash in /json/wiki/get when page contents are NULL. file: [b54c185991] check-in: [fca6c46cd9] user: stephan branch: trunk, size: 12369 | |
|
2012-02-16
| ||
| 20:12 | fixed /json/wiki/get to fail with a resource-not-found error if given the name of an unknown page. file: [2682fbde5e] check-in: [ac8c1ad4bb] user: stephan branch: trunk, size: 12176 | |
|
2012-02-12
| ||
| 12:41 | moved an incorrectly placed assertion in (json wiki save). file: [570478b299] check-in: [4272d03e32] user: stephan branch: trunk, size: 12012 | |
| 11:04 | minor doc clarification for the previous commit. file: [d2afac384c] check-in: [f42096f7ca] user: stephan branch: trunk, size: 12012 | |
| 10:58 | (json wiki save) now returns the results of (json wiki get) but without the page content. file: [29afb63f30] check-in: [70ea765873] user: stephan branch: trunk, size: 11983 | |
| 10:42 | (json wiki get) now supports returning the page metadata without the content. Fixed an arg-forwarding bug in json_find_option_cstr() which caused long-form args to be ignored. file: [a36966f417] check-in: [913e0b6628] user: stephan branch: trunk, size: 11743 | |
|
2011-11-04
| ||
| 20:37 | Added configure option --enable-json to enable json features. They are disabled by default. file: [430c36a35f] check-in: [525816e6d7] user: json-demo branch: json, size: 11130 | |
|
2011-10-19
| ||
| 21:53 | removed a no-longer-true "untested" marker. file: [390290409a] check-in: [4f196f15fb] user: stephan branch: json, size: 11072 | |
| 14:56 | removed a superfluous call to json_set_err() which "overwrote" the previously set error. file: [d43e6f1b7f] check-in: [1615544773] user: stephan branch: json, size: 11088 | |
|
2011-10-07
| ||
| 14:19 | fixed a missing db_finalize() in an error-handling case. file: [2c9c2ee2cb] check-in: [7906bab836] user: stephan branch: json, size: 11173 | |
| 06:54 | Minor internal tweaks. Pulled in lastest cson_amalgamation for the new convenience functions. file: [7b3bf5e763] check-in: [c75759d8d0] user: stephan branch: json, size: 11193 | |
| 03:52 | /json/wiki/get: renamed request.payload.page to "name" for consistency. Added a TODO to /json/tag/list. file: [3be11fb7bd] check-in: [34056ea238] user: stephan branch: json, size: 11189 | |
|
2011-10-05
| ||
| 06:42 | A few internal cosmetic cleanups, added json_get_wiki_page_by_rid(). file: [52f13c144b] check-in: [afb3c89fe6] user: stephan branch: json, size: 10983 | |
| 02:26 | Consolidated more of the CLI/HTTP/CLI-with-POST arg handling disparities into the json_find_option() family of functions. file: [813eb223f5] check-in: [5b4a3f12dc] user: stephan branch: json, size: 10234 | |
| 00:53 | lots of minor cleanups in JSON error handling (mostly cosmetic). Added some new FOSSIL-xxxx codes. file: [36f6c95806] check-in: [2e41514fb7] user: stephan branch: json, size: 10251 | |
|
2011-10-04
| ||
| 09:06 | /json/wiki/get argument handling cleanup so that it works with the newer command=... approach. file: [3d7ec36cce] check-in: [96fe10ab54] user: stephan branch: json, size: 9628 | |
|
2011-10-02
| ||
| 23:59 | Minor error handling cleanups (nicer resultText strings). Removed a call to sqlite3_config() from the JSON bootstrap code which _seems_ to be the cause of an SQLITE_MISUSE warning. file: [c892408a2d] check-in: [af72cc7599] user: stephan branch: json, size: 9380 | |
| 11:15 | removed an implemented TODO reminder. file: [062021c978] check-in: [f270f0b5c1] user: stephan branch: json, size: 8687 | |
| 10:51 | Added missing license header to new files. Updated (c) date to 2011. file: [ead49f5a21] check-in: [8a665715c2] user: stephan branch: json, size: 8758 | |
|
2011-10-01
| ||
| 05:58 | minor cleanups. file: [45f345e441] check-in: [6ee6486e02] user: stephan branch: json, size: 8244 | |
| 05:05 | minor db_column usage cleanup. file: [5b5fbef8e3] check-in: [cf8b20ea1f] user: stephan branch: json, size: 8274 | |
| 04:03 | Cleaned up wiki formatting code a bit. Added wiki uuid to /json/wiki/get response payload. file: [7bdf6a3cbb] check-in: [3f512ca41b] user: stephan branch: json, size: 8300 | |
| 03:37 | Added format=raw|html to /json/wiki/get. file: [1e7379942f] check-in: [c990e7ec25] user: stephan branch: json, size: 8114 | |
|
2011-09-29
| ||
| 13:08 | Removed a test/debug #if block which i accidentally left enabled in [73e28dd718]. file: [ce9af639de] check-in: [5ddfe3d663] user: stephan branch: json, size: 7340 | |
|
2011-09-28
| ||
| 22:04 | Added createIfNotExists bool option to /json/wiki/save. file: [28ac572d71] check-in: [73e28dd718] user: stephan branch: json, size: 7553 | |
|
2011-09-27
| ||
| 01:18 | Added: moved /json/timeline|wiki commands/pages into their own files. file: [acd7e1814f] check-in: [821830d2fb] user: stephan branch: json, size: 6843 | |