From f566a9b0d006a4d1aaa8501e771f6a5b7a55f9fe Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 24 Jun 2020 03:01:16 +0000
Subject: CTAN sync 202006240301

---
 macros/latex/contrib/rest-api/rest-api.dtx | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

(limited to 'macros/latex/contrib/rest-api/rest-api.dtx')

diff --git a/macros/latex/contrib/rest-api/rest-api.dtx b/macros/latex/contrib/rest-api/rest-api.dtx
index fa195fdf78..db450b183b 100644
--- a/macros/latex/contrib/rest-api/rest-api.dtx
+++ b/macros/latex/contrib/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}}
 	}
-- 
cgit v1.2.3

