Update layouts/_partials/endpoints-toc.html

This commit is contained in:
Richard van der Hoff 2025-12-18 14:58:01 +00:00 committed by GitHub
parent ab795c236b
commit fce3a88e44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,8 +5,8 @@
The outer page's Scratch must contain an "api_endpoints" key, which is either The outer page's Scratch must contain an "api_endpoints" key, which is either
a slice of maps (a list of endpoint metadata dicts) or a map of module name -> a slice of maps (a list of endpoint metadata dicts) or a map of module name ->
slice of endpoint metadata dicts (representing the API modules and the slice of endpoint metadata dicts (representing the API modules and the
endpoints they each contain). Each slice item must contain the Each endpoint endpoints they each contain). Each endpoint dict must contain the following
dict must contain the following keys: keys:
* `anchor`: the HTML anchor for the endpoint * `anchor`: the HTML anchor for the endpoint
* `method`: the HTTP method * `method`: the HTTP method