summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-23 21:20:04 +0000
committerKarl Berry <karl@freefriends.org>2020-06-23 21:20:04 +0000
commit2abed3c1b84e84482bf5e25b8cc1c88cdec98950 (patch)
treeb4513847ff78b51d9cbbf7efd1b488fd18010a65 /Master/texmf-dist
parent1915d55af0571cbdcaec9681226feeff2d73a58f (diff)
rest-api (23jun20)
git-svn-id: svn://tug.org/texlive/trunk@55639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/rest-api/rest-api.pdfbin173078 -> 142219 bytes
-rw-r--r--Master/texmf-dist/source/latex/rest-api/rest-api.dtx17
-rw-r--r--Master/texmf-dist/tex/latex/rest-api/rest-api.sty6
3 files changed, 14 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf b/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf
index d126896306a..90ddffa7911 100644
--- a/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf
+++ b/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/rest-api/rest-api.dtx b/Master/texmf-dist/source/latex/rest-api/rest-api.dtx
index fa195fdf789..db450b183ba 100644
--- a/Master/texmf-dist/source/latex/rest-api/rest-api.dtx
+++ b/Master/texmf-dist/source/latex/rest-api/rest-api.dtx
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{rest-api}
%<*package>
- [2020/03/22 v1.2 rest-api package]
+ [2020/06/23 v1.3 rest-api package]
%</package>
%
%<*driver>
@@ -59,6 +59,7 @@
% Right brace \} Tilde \~}
%
%
+% \changes{v1.3}{2020/06/23}{Fix typo and table coloring after apiRoute block}
% \changes{v1.2}{2020/03/22}{Corrections for CTAN, rename to rest-api}
% \changes{v1.1}{2020/03/21}{Add documentation and usage}
% \changes{v1.0}{2020/02/18}{Converted to DTX file}
@@ -121,7 +122,7 @@
\begin{lstlisting}[frame=single,breaklines=true]
\begin{apiRoute}{get}{/api/storage/}{get a list of all storage's}
\begin{routeParameter}
- \noRouteParamter{no parameter}
+ \noRouteParameter{no parameter}
\end{routeParameter}
\begin{routeResponse}{application/json}
\begin{routeResponseItem}{200}{ok}
@@ -155,7 +156,7 @@
\begin{lstlisting}[frame=single,breaklines=true]
\begin{apiRoute}{get}{/api/storage/}{}
\begin{routeParameter}
- \noRouteParamter{no parameter}
+ \noRouteParameter{no parameter}
\end{routeParameter}
\begin{routeResponse}{application/json}
\noRouteResponse{no response}
@@ -173,7 +174,7 @@
\begin{lstlisting}[frame=single,breaklines=true]
\begin{apiRoute}{post}{/api/storage/}{create a new storage}
\begin{routeParameter}
- \noRouteParamter{no parameter}
+ \noRouteParameter{no parameter}
\end{routeParameter}
\begin{routeRequest}{application/json}
\begin{routeRequestBody}
@@ -327,12 +328,12 @@
% \DescribeEnv{routeParameter}
% Describe the path parameter.
% Contains a list of \textbackslash routeParamItem commands.
-% If no paramters excists you can use the command \textbackslash noRouteParamter.
+% If no paramters excists you can use the command \textbackslash noRouteParameter.
%
% \DescribeMacro{\routeParamItem}
% Describe a parameter with name and describtion.
%
-% \DescribeMacro{\noRouteParamter}
+% \DescribeMacro{\noRouteParameter}
% Show a text e.g. 'no parameter'.
%
% \DescribeEnv{routeResponse}
@@ -751,6 +752,7 @@
% \begin{macrocode}
\newenvironment{apiRoute}[3]
{
+ \global\let\saved@CT@arc@\CT@arc@
\newcommand{\method}{#1}
\newcommand{\urlPath}{#2}
\newcommand{\routeDescription}{#3}
@@ -847,6 +849,7 @@
{
\end{mdframed}
\endgroup
+ \global\let\CT@arc@\saved@CT@arc@
}
% \end{macrocode}
%
@@ -884,7 +887,7 @@
{
\rowcolor{\methodLightColor} ##1 & ##2 \\
}
- \newcommand{\noRouteParamter}[1]
+ \newcommand{\noRouteParameter}[1]
{
\small{\textit{##1}}
}
diff --git a/Master/texmf-dist/tex/latex/rest-api/rest-api.sty b/Master/texmf-dist/tex/latex/rest-api/rest-api.sty
index 9af9ee495de..cb8d2ed2f9f 100644
--- a/Master/texmf-dist/tex/latex/rest-api/rest-api.sty
+++ b/Master/texmf-dist/tex/latex/rest-api/rest-api.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{rest-api}
- [2020/03/22 v1.2 rest-api package]
+ [2020/06/23 v1.3 rest-api package]
@@ -265,6 +265,7 @@ nobreak=true
\end{comment}
\newenvironment{apiRoute}[3]
{
+\global\let\saved@CT@arc@\CT@arc@
\newcommand{\method}{#1}
\newcommand{\urlPath}{#2}
\newcommand{\routeDescription}{#3}
@@ -356,6 +357,7 @@ nobreak=true
{
\end{mdframed}
\endgroup
+\global\let\CT@arc@\saved@CT@arc@
}
\newenvironment{routeRequest}[1]
{
@@ -381,7 +383,7 @@ nobreak=true
{
\rowcolor{\methodLightColor} ##1 & ##2 \\
}
-\newcommand{\noRouteParamter}[1]
+\newcommand{\noRouteParameter}[1]
{
\small{\textit{##1}}
}