appproject-framework 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1700,6 +1700,16 @@ class DataService {
1700
1700
  headers = headers.set('Content-Type', 'application/json; charset=utf-8');
1701
1701
  return this.httpClient.put(`${this.BASE_API}/${url}`, param, { headers: headers });
1702
1702
  }
1703
+ /**
1704
+ * Fazer requisição do tipo PUT para salvar um registro alterado
1705
+ * Foi criado T e U porque tem caso que o tipo da request é diferente do tipo da response
1706
+ * @param url Url parcial para fazer a requisição
1707
+ * @param param Objeto do tipo FormData
1708
+ * @returns Ok, Objeto com id gerado
1709
+ */
1710
+ putFormRequest(url, param) {
1711
+ return this.httpClient.put(`${this.BASE_API}/${url}`, param);
1712
+ }
1703
1713
  /**
1704
1714
  * Fazer requisição do tipo GET para retornar uma lista de objetos
1705
1715
  * @param url url parcial para fazer a requisição