Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. \subsection{I10: Listar clientes de um vendedor}
  2.  
  3. \begin{table}[h!]
  4. \centering
  5. \begin{tabular}{|c|c|}
  6. \hline
  7. \textbf{Webservice ID} & Get\_ClientesVendedor(id) \\ \hline
  8. \textbf{Webservice Description} & Permite obter uma listagem dos clientes de um vendedor\\ \hline
  9. \textbf{Related Core View(s)} & CV02 \\ \hline
  10. \textbf{Path} & http://localhost:49822/api/ClientesVendedor/\textless id\textgreater\\ \hline
  11. \textbf{Method} & GET \\ \hline
  12. \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\"id"= id\\ \}\end{tabular}} \\ \hline
  13. \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
  14. \end{tabular}
  15. \end{table}
  16.  
  17. \newpage
  18.  
  19. \subsection{I11: Listar oportunidades }
  20.  
  21. \begin{table}[h!]
  22. \centering
  23. \begin{tabular}{|c|c|}
  24. \hline
  25. \textbf{Webservice ID} & ListaOportunidades() \\ \hline
  26. \textbf{Webservice Description} & Permite obter a listagem das oportunidades \\ \hline
  27. \textbf{Related Core View(s)} & - \\ \hline
  28. \textbf{Path} & http://localhost:49822/api/Opotunidade \\ \hline
  29. \textbf{Method} & GET \\ \hline
  30. \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
  31. \end{tabular}
  32. \end{table}
  33.  
  34. \subsection{I12: Adicionar encomenda}
  35.  
  36. \begin{table}[h!]
  37. \centering
  38. \begin{tabular}{|c|c|}
  39. \hline
  40. \textbf{Webservice ID} & new\_order \\ \hline
  41. \textbf{Webservice Description} & Cria uma nova encomenda \\ \hline
  42. \textbf{Related Core View(s)} & CV06 \\ \hline
  43. \textbf{Path} & http://localhost:49822/api/DocVenda\\ \hline
  44. \textbf{Method} & POST \\ \hline
  45. \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
  46. \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "result": 1\\ \}\\Error:\\ \{ \\ "result": 0 \\ \}\end{tabular}} \\ \hline
  47. \end{tabular}
  48. \end{table}
  49.  
  50. \newpage
  51. \subsection{I13: Ver encomenda}
  52.  
  53. \begin{table}[h!]
  54. \centering
  55. \begin{tabular}{|c|c|}
  56. \hline
  57. \textbf{Webservice ID} & get\_order \\ \hline
  58. \textbf{Webservice Description} & Vai buscar a informação relacionada com uma encomenda \\ \hline
  59. \textbf{Related Core View(s)} & - \\ \hline
  60. \textbf{Path} & http://localhost:49822/api/DocVenda/\textless id\textgreater\\ \hline
  61. \textbf{Method} & GET \\ \hline
  62. \textbf{Input Example} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}\{\\ id=1234 \\ \}\end{tabular}} \\ \hline
  63. \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
  64. \end{tabular}
  65. \end{table}
  66.  
  67. \subsection{I14: Editar encomenda}
  68.  
  69. \begin{table}[h!]
  70. \centering
  71. \begin{tabular}{|c|c|}
  72. \hline
  73. \textbf{Webservice ID} & edit\_order \\ \hline
  74. \textbf{Webservice Description} & Permite editar os dados de uma encomenda \\ \hline
  75. \textbf{Related Core View(s)} & CV05 \\ \hline
  76. \textbf{Path} & http://localhost:49822/api/DocVenda/\textless id\textgreater\\ \hline
  77. \textbf{Method} & PUT \\ \hline
  78. \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
  79. \textbf{Expected Output} & \multicolumn{1}{l|}{\begin{tabular}[c]{@{}l@{}}Success:\\\{\\ "result": 1 \\ \}\\Wrong order ID:\\ \{ \\ "result": 0 \\ \}\end{tabular}} \\ \hline
  80. \end{tabular}
  81. \end{table}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement