Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \subsection{I10: Listar clientes de um vendedor}
- \begin{table}[h!]
- \centering
- \begin{tabular}{|c|c|}
- \hline
- \textbf{Webservice ID} & Get\_ClientesVendedor(id) \\ \hline
- \textbf{Webservice Description} & Permite obter uma listagem dos clientes de um vendedor\\ \hline
- \textbf{Related Core View(s)} & CV02 \\ \hline
- \textbf{Path} & http://localhost:49822/api/ClientesVendedor/\textless id\textgreater\\ \hline
- \textbf{Method} & GET \\ \hline
- \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\"id"= id\\ \}\end{tabular}} \\ \hline
- \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "clients": [ \{ \\ "CodCliente" : CodCliente, \\ "Nome" : Nome, \\ "Email" : Email \}]\\ \}\\Wrong sales representative ID:\\ \{ \\ "result": 0 \\ \} \end{tabular}} \\ \hline
- \end{tabular}
- \end{table}
- \newpage
- \subsection{I11: Listar oportunidades }
- \begin{table}[h!]
- \centering
- \begin{tabular}{|c|c|}
- \hline
- \textbf{Webservice ID} & ListaOportunidades() \\ \hline
- \textbf{Webservice Description} & Permite obter a listagem das oportunidades \\ \hline
- \textbf{Related Core View(s)} & - \\ \hline
- \textbf{Path} & http://localhost:49822/api/Opotunidade \\ \hline
- \textbf{Method} & GET \\ \hline
- \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "opportunities": [ \{ \\ "Id" :Id, \\ "Descricao" : Descricao, \\ "Resumo" : Resumo, \\ "DataExpiracao" : DataExpiracao, \\ "ValorTotal" : ValorTotal, \\ "Cliente" : Cliente \}]\\ \}\\Wrong sales representative ID:\\ \{ \\ "result": 0 \\ \} \end{tabular}} \\ \hline
- \end{tabular}
- \end{table}
- \subsection{I12: Adicionar encomenda}
- \begin{table}[h!]
- \centering
- \begin{tabular}{|c|c|}
- \hline
- \textbf{Webservice ID} & new\_order \\ \hline
- \textbf{Webservice Description} & Cria uma nova encomenda \\ \hline
- \textbf{Related Core View(s)} & CV06 \\ \hline
- \textbf{Path} & http://localhost:49822/api/DocVenda\\ \hline
- \textbf{Method} & POST \\ \hline
- \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\ "id": id,\\ "Entidade": Entidade,\\ "NumDoc": NumDoc,\\ "Data": Data,\\ "TotalMerc": TotalMerc,\\ "Serie": Serie, \\ "Utilizador": Utilizador \\ "Desconto": Desconto, \\ "LinhasDoc": [ \\ \{ \\ "CodArtigo": CodArtigo, \\ "DescArtigo": DescArtigo, \\ "IdCabecDoc"IdCabecDoc, \\ "Quantidade": Quantidade, \\ "Unidade": Unidade \\ "Desconto": Desconto, \\ "PrecoUnitario": PrecoUnitario, \\ "TotalILiquido":TotalILiquido, \\ "TotalLiquido": TotalLiquido \} \\ ] \\ \}\end{tabular}} \\ \hline
- \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "result": 1\\ \}\\Error:\\ \{ \\ "result": 0 \\ \}\end{tabular}} \\ \hline
- \end{tabular}
- \end{table}
- \newpage
- \subsection{I13: Ver encomenda}
- \begin{table}[h!]
- \centering
- \begin{tabular}{|c|c|}
- \hline
- \textbf{Webservice ID} & get\_order \\ \hline
- \textbf{Webservice Description} & Vai buscar a informação relacionada com uma encomenda \\ \hline
- \textbf{Related Core View(s)} & - \\ \hline
- \textbf{Path} & http://localhost:49822/api/DocVenda/\textless id\textgreater\\ \hline
- \textbf{Method} & GET \\ \hline
- \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\ id=1234 \\ \}\end{tabular}} \\ \hline
- \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\ "id": id,\\ "Entidade": Entidade,\\ "NumDoc": NumDoc,\\ "Data": Data,\\ "TotalMerc": TotalMerc,\\ "Serie": Serie, \\ "Utilizador": Utilizador \\ "Desconto": Desconto, \\ "LinhasDoc": [ \\ \{ \\ "CodArtigo": CodArtigo, \\ "DescArtigo": DescArtigo, \\ "IdCabecDoc"IdCabecDoc, \\ "Quantidade": Quantidade, \\ "Unidade": Unidade \\ "Desconto": Desconto, \\ "PrecoUnitario": PrecoUnitario, \\ "TotalILiquido":TotalILiquido, \\ "TotalLiquido": TotalLiquido \} \\ ] \\ \}\end{tabular}} \\ \hline
- \end{tabular}
- \end{table}
- \subsection{I14: Editar encomenda}
- \begin{table}[h!]
- \centering
- \begin{tabular}{|c|c|}
- \hline
- \textbf{Webservice ID} & edit\_order \\ \hline
- \textbf{Webservice Description} & Permite editar os dados de uma encomenda \\ \hline
- \textbf{Related Core View(s)} & CV05 \\ \hline
- \textbf{Path} & http://localhost:49822/api/DocVenda/\textless id\textgreater\\ \hline
- \textbf{Method} & PUT \\ \hline
- \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\ "id": id,\\ "Entidade": Entidade,\\ "NumDoc": NumDoc,\\ "Data": Data,\\ "TotalMerc": TotalMerc,\\ "Serie": Serie, \\ "Utilizador": Utilizador \\ "Desconto": Desconto, \\ "LinhasDoc": [ \\ \{ \\ "CodArtigo": CodArtigo, \\ "DescArtigo": DescArtigo, \\ "IdCabecDoc"IdCabecDoc, \\ "Quantidade": Quantidade, \\ "Unidade": Unidade \\ "Desconto": Desconto, \\ "PrecoUnitario": PrecoUnitario, \\ "TotalILiquido":TotalILiquido, \\ "TotalLiquido": TotalLiquido \} \\ ] \\ \}\end{tabular}} \\ \hline
- \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "result": 1 \\ \}\\Wrong order ID:\\ \{ \\ "result": 0 \\ \}\end{tabular}} \\ \hline
- \end{tabular}
- \end{table}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement