texlive[55639] Master/texmf-dist: rest-api (23jun20)

commits+karl at tug.org commits+karl at tug.org
Tue Jun 23 23:20:04 CEST 2020


Revision: 55639
          http://tug.org/svn/texlive?view=revision&revision=55639
Author:   karl
Date:     2020-06-23 23:20:04 +0200 (Tue, 23 Jun 2020)
Log Message:
-----------
rest-api (23jun20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf
    trunk/Master/texmf-dist/source/latex/rest-api/rest-api.dtx
    trunk/Master/texmf-dist/tex/latex/rest-api/rest-api.sty

Modified: trunk/Master/texmf-dist/doc/latex/rest-api/rest-api.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/rest-api/rest-api.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/rest-api/rest-api.dtx	2020-06-23 21:19:50 UTC (rev 55638)
+++ trunk/Master/texmf-dist/source/latex/rest-api/rest-api.dtx	2020-06-23 21:20:04 UTC (rev 55639)
@@ -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 at CT@arc@\CT at arc@
 	\newcommand{\method}{#1}
 	\newcommand{\urlPath}{#2}
 	\newcommand{\routeDescription}{#3}
@@ -847,6 +849,7 @@
 {
 		\end{mdframed}
 	\endgroup
+	\global\let\CT at arc@\saved at CT@arc@
 }
 %    \end{macrocode}
 %
@@ -884,7 +887,7 @@
 	{
 		\rowcolor{\methodLightColor} ##1 & ##2 \\
 	}
-	\newcommand{\noRouteParamter}[1]
+	\newcommand{\noRouteParameter}[1]
 	{
 		\small{\textit{##1}}
 	}

Modified: trunk/Master/texmf-dist/tex/latex/rest-api/rest-api.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/rest-api/rest-api.sty	2020-06-23 21:19:50 UTC (rev 55638)
+++ trunk/Master/texmf-dist/tex/latex/rest-api/rest-api.sty	2020-06-23 21:20:04 UTC (rev 55639)
@@ -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 @@
 \end{comment}
 \newenvironment{apiRoute}[3]
 {
+\global\let\saved at CT@arc@\CT at arc@
 \newcommand{\method}{#1}
 \newcommand{\urlPath}{#2}
 \newcommand{\routeDescription}{#3}
@@ -356,6 +357,7 @@
 {
 \end{mdframed}
 \endgroup
+\global\let\CT at arc@\saved at CT@arc@
 }
 \newenvironment{routeRequest}[1]
 {
@@ -381,7 +383,7 @@
 {
 \rowcolor{\methodLightColor} ##1 & ##2 \\
 }
-\newcommand{\noRouteParamter}[1]
+\newcommand{\noRouteParameter}[1]
 {
 \small{\textit{##1}}
 }



More information about the tex-live-commits mailing list.