Commit Graph
22 Commits
Author SHA1 Message Date
Olivier Meunier f721f34b86 Improved POST cookbook/extract with HTML content
- use the new resource loader on the "data" parameter
- when provided, this parameter sets the provided URL content
2026-01-08 15:02:36 +01:00
Olivier Meunier 2441f2eafb API documentation update for the new DCR and DCM removal 2025-11-02 17:59:50 +01:00
Olivier Meunier df3a0d6318 Updated the API documentation for the new tooling.
- split the massive bookmarks/routes.yaml into several files
- moved big markdown contents to individual files
- moved the OAuth documentation to the API description
- fixed a few minor bugs with schemas
- added a "data" definition to file-based import routes
2025-10-28 11:45:51 +01:00
Olivier Meunier 5984abe9ed API Documentation for OAuth routes.
This removes the /api/auth route documentation.
2025-10-24 18:23:04 +02:00
Olivier Meunier 03f233aa5a API documentation improvements
- Moved method to "routes.yaml" files; it simplifies the api.yaml contents
- Presentation options
- Some API documentation fixes here and there
- Switch to "view" render-style when screen width is less than 814px
  resolves #653
2025-09-30 07:05:45 +02:00
Olivier Meunier 58754c0416 Routes to label information using query parameter
A label can be anything and this means you can't always use it as a
path parameter. A label "#/../test" is perfectly valid but, even with
path escaping, it fails in a browser.

We now use the same route ("/labels") for label operations and split
the middlewares and handlers based on the presence of a "name" parameter
in the request URL.

resolves #277 once and for all
2025-07-26 10:48:15 +02:00
Mislav Marohnić aa095205ee cookbook api: improve documentation
- Document the POST usage for the `cookbook/extract` API
- Document the GET `cookbook/urls` API
2025-07-04 23:19:58 +02:00
Olivier Meunier f6438e5d8d Section labels and order in API documentation 2025-06-25 07:21:55 +02:00
Olivier Meunier 95ec04e86f Sync route API documentation 2025-06-24 20:29:23 +02:00
Olivier Meunier e0aced2888 Updated API documentation with missing import routes 2025-06-24 19:38:03 +02:00
Olivier Meunier 4b4b0a93c2 Returns server info from GET /info.
It returns the canonical, release and build number. This can be useful
in order to target a release without any build number.
2025-06-15 21:01:58 +02:00
Olivier Meunier dd1f6b45c0 Added /api/bookmarks/sync route.
This route return a minimal, non-paginated, list of bookmark IDs and
their creation and update dates.

Resolves #524
2025-06-11 21:51:09 +02:00
Olivier Meunier 6726e15251 Added bookmark sharing API routes documentation
Resolves #621
2025-06-01 16:59:53 +02:00
Olivier Meunier ab3894f7bc Added a PATCH method on bookmark annotations.
This lets us change an annotation's color.
Added and fixed API documentation for it.
2024-12-28 10:00:40 +01:00
Olivier Meunier d58c7a5f18 Added sort parameter in API documentation 2024-07-12 23:45:43 +02:00
Olivier Meunier 3d27764f6d Updated layout, breadcrumb on docs, better API documentation
- Changed from padding to margin in .layout-content block in order
  to keep a consistent width when it receives max-w-std
- Added breadcrumbs on all documentation views
- API documentation layout consistency
- Fixed API documentation for POST /auth and GET /profile
2024-04-24 07:41:30 +02:00
Olivier Meunier a1f12419c1 Added bookmark import routes to API documentation 2024-04-20 10:46:28 +02:00
Olivier Meunier 17d35f6003 API authentication and user profile documentation 2023-12-20 09:54:25 +01:00
Olivier Meunier aecd49306f Bookmark related API documentation
- /api/bookmarks/labels
- /api/bookmarks/annotations
- /api/bookmarks/collections
- reverted rapidoc to the previous version (try out wasn't working)
2023-12-20 09:07:13 +01:00
Olivier Meunier b956cd92c9 Added documentation for the /api/cookbook/extract route 2023-11-05 12:45:57 +01:00
Olivier Meunier 6091812c72 Added a script to send the CSRF token when trying the API.
Trying the API works without providing a token; it uses the session
cookie. But it fails on POST/PUT/PATCH requests. This adds a script
that injects the CSRF token for these requests.

Font styling is now in the doc.sass file.
2023-11-05 12:45:57 +01:00
Olivier Meunier 0850847e59 API documentation
This is the first commit with very few routes documentation.
The documentation source is divided in several files that are merged
together using file-compose, which provides a mechanism to merge parts
of yaml files together.

The documentation is served by RapiDoc. It's a true web component and
it provides some features for future improvements, should we need them.

Thank to a good styling system, and the use of variables, it was a few
lines of code to customize RapiDoc to Readeck's colors :)
2023-11-05 12:45:57 +01:00