selectline-software / selectline-api

Apache License 2.0
24 stars 5 forks source link

CustomerReadCustomerByNumberAsync #362

Closed git828 closed 9 months ago

git828 commented 9 months ago

Details

Steps to replicate the behavior:

Wieso wurden diverse Modelle mit Async eingestellt?

Beispiel: Version 21.3.0 public SelectLineErpCustomerModuleModelsCustomer CustomerReadCustomerByNumberAsync(string customerNumber) { ApiResponse<SelectLineErpCustomerModuleModelsCustomer> apiResponse = CustomerReadCustomerByNumberAsyncWithHttpInfo(customerNumber); return apiResponse.Data; }

Version 23.2.0 public void CustomerReadCustomerByNumberAsync(string customerNumber) { CustomerReadCustomerByNumberAsyncWithHttpInfo(customerNumber); }

Jetzt gibt es kein Model SelectLineErpCustomerModuleModelsCustomer zur Rückgabe.

MaikGoertz commented 9 months ago

Moin. Hierbei handelte es sich um einen Fehler in der API Dokumentation, wie er auch schon in #357 erwähnt wurde und ist mit der Version 23.2.1 behoben worden.

git828 commented 9 months ago

Vielen Dank Habe soeben 23.2.2 übersetzt. Habe noch ein paar andere Funktionen die nicht laufen. Beispiel: ALT: public object DocumentDeleteDocument(string documentKey) { ApiResponse apiResponse = DocumentDeleteDocumentWithHttpInfo(documentKey); return apiResponse.Data; } NEU: public void DocumentDeleteDocument(string documentKey) { DocumentDeleteDocumentWithHttpInfo(documentKey); } ALT: public object DocumentUpdateDocumentPositionByDocumentKey(string documentKey, string documentPositionIdentifier, SelectLineErpDocumentModuleModelsDocumentPositionUpdateModel position) { ApiResponse apiResponse = DocumentUpdateDocumentPositionByDocumentKeyWithHttpInfo(documentKey, documentPositionIdentifier, position); return apiResponse.Data; } NEU:
public void DocumentUpdateDocumentPositionByDocumentKey(string documentKey, string documentPositionIdentifier, SelectLineErpWebApiModelsDocumentDocumentPositionUpdateModel position) { DocumentUpdateDocumentPositionByDocumentKeyWithHttpInfo(documentKey, documentPositionIdentifier, position); }

ALT: public object CustomerUpdateCustomerAsync(string customerNumber, SelectLineErpCustomerModuleModelsCustomer customer) { ApiResponse apiResponse = CustomerUpdateCustomerAsyncWithHttpInfo(customerNumber, customer); return apiResponse.Data; }
NEU:
public void CustomerUpdateCustomerAsync(string customerNumber, SelectLineErpCustomerModuleModelsCustomer customer) { CustomerUpdateCustomerAsyncWithHttpInfo(customerNumber, customer); }
ALT: public object DocumentUpdateDocument(string documentKey, SelectLineErpDocumentModuleModelsDocumentUpdateModel document) { ApiResponse apiResponse = DocumentUpdateDocumentWithHttpInfo(documentKey, document); return apiResponse.Data; } NEU: public void DocumentUpdateDocument(string documentKey, SelectLineErpDocumentModuleModelsDocumentUpdateModel document) { DocumentUpdateDocumentWithHttpInfo(documentKey, document); }

werden die auch noch korrigiert oder muss Ich die umschreiben?

MaikGoertz commented 9 months ago

Moin.

Bei den aufgeführten Routen ist die Änderung beabsichtigt. DELETE und PUT Routen geben per Konvention NoContent (204) als Response StatusCode. Dies wurde nun auch in der Swagger Dokumentation so korrigiert.