(BLOCK (PARA (TEXT "The ") (LINK-ZETTEL () "00001012920000" (TEXT "endpoint")) (TEXT " to work with evaluated metadata and content of a specific zettel is ") (LITERAL-INPUT () "/z/{ID}") (TEXT ", where ") (LITERAL-INPUT () "{ID}") (TEXT " is a placeholder for the ") (LINK-ZETTEL () "00001006050000" (TEXT "zettel identifier")) (TEXT ".")) (PARA (TEXT "For example, to retrieve some evaluated data about this zettel you are currently viewing in ") (LINK-ZETTEL () "00001012920516" (TEXT "Sz encoding")) (TEXT ", just send a HTTP GET request to the endpoint ") (LITERAL-INPUT () "/z/00001012053500") (ENDNOTE () (TEXT "If ") (LINK-ZETTEL () "00001010040100" (TEXT "authentication is enabled")) (TEXT ", you must include the a valid ") (LINK-ZETTEL () "00001012050200" (TEXT "access token")) (TEXT " in the ") (LITERAL-INPUT () "Authorization") (TEXT " header")) (TEXT " with the query parameter ") (LITERAL-INPUT () "enc=sz") (TEXT ".") (SOFT) (TEXT "If successful, the output is a symbolic expression value:")) (VERBATIM-CODE (("" . "sh")) "# curl 'http://127.0.0.1:23123/z/00001012053500?enc=sz'\n(BLOCK (PARA (TEXT \"The \") (LINK-ZETTEL () \"00001012920000\" (TEXT \"endpoint\")) (TEXT \" to work with parsed metadata and content of a specific zettel is \") (LITERAL-INPUT () \"/z/{ID}\") (TEXT \", where \") (LITERAL-INPUT () \"{ID}\") (TEXT \" is a placeholder for the \") ...") (PARA (TEXT "To select another encoding, you must provide the query parameter ") (LITERAL-INPUT () "enc=ENCODING") (TEXT ".") (SOFT) (TEXT "Others are ") (FORMAT-QUOTE () (LINK-ZETTEL () "00001012920510" (TEXT "html"))) (TEXT ", ") (FORMAT-QUOTE () (LINK-ZETTEL () "00001012920519" (TEXT "text"))) (TEXT ", and some ") (LINK-ZETTEL () "00001012920500" (TEXT "more")) (TEXT ".") (SOFT) (TEXT "In addition, you may provide a query parameter ") (LITERAL-INPUT () "part=PART") (TEXT " to select the relevant ") (LINK-ZETTEL () "00001012920800" (TEXT "part")) (TEXT " of a zettel.")) (VERBATIM-CODE (("" . "sh")) "# curl 'http://127.0.0.1:23123/z/00001012053500?enc=html&part=zettel'\n\n\n\nAPI: Retrieve evaluated metadata and content of an existing zettel in various encodings\n\n\n\n\n\n\n\n\">\n\n\n\n\n\n\n\n\n\n

API: Retrieve evaluated metadata and content of an existing zettel in various encodings

\n

The endpoint to work with evaluated metadata and content of a specific zettel is /z/{ID},\n...") (HEADING 1 () "http-status-codes" "http-status-codes" (TEXT "HTTP Status codes")) (DESCRIPTION ((LITERAL-INPUT () "200")) (BLOCK (BLOCK (PARA (TEXT "Retrieval was successful, the body contains an appropriate data value.")))) ((LITERAL-INPUT () "400")) (BLOCK (BLOCK (PARA (TEXT "Request was not valid.") (HARD) (TEXT "There are several reasons for this.") (SOFT) (TEXT "Maybe the zettel identifier did not consist of exactly 14 digits or ") (LITERAL-INPUT () "enc") (TEXT " / ") (LITERAL-INPUT () "part") (TEXT " contained illegal values.")))) ((LITERAL-INPUT () "403")) (BLOCK (BLOCK (PARA (TEXT "You are not allowed to retrieve data of the given zettel.")))) ((LITERAL-INPUT () "404")) (BLOCK (BLOCK (PARA (TEXT "Zettel not found.") (SOFT) (TEXT "You probably used a zettel identifier that is not used in the Zettelstore."))))))