appproject-framework 1.0.6 → 1.0.7

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.
@@ -1666,6 +1666,16 @@ class DataService {
1666
1666
  headers = headers.set('Content-Type', 'application/json; charset=utf-8');
1667
1667
  return this.httpClient.post(`${this.BASE_API}/${url}`, param, { headers: headers });
1668
1668
  }
1669
+ /**
1670
+ * Fazer requisição do tipo POST para salvar novo registro
1671
+ * Foi criado T e U porque tem caso que o tipo da request é diferente do tipo da response
1672
+ * @param url Url parcial para fazer a requisição
1673
+ * @param param Objeto do tipo FormData
1674
+ * @returns Ok, Objeto com id gerado
1675
+ */
1676
+ postFormRequest(url, param) {
1677
+ return this.httpClient.post(`${this.BASE_API}/${url}`, param);
1678
+ }
1669
1679
  /**
1670
1680
  * Fazer requisição do tipo POST, esperando uma lista como response
1671
1681
  * Foi criado T e U porque tem caso que o tipo da request é diferente do tipo da response