CRUD Operationen in OData
Hinweis: Der OData-Server wird jede Nacht neu gestartet, um alle Tabellendefinitionen zu aktualisieren. Das bedeutet, wenn in einem Unternehmen neue Felder oder Tabellen angelegt werden, stehen diese Felder und Tabellen erst nach einem Neustart zur Verfügung.
Um CRUD-Operationen mit OData durchzuführen, stehen die unten aufgeführten Funktionen zur Verfügung
Get Uniconta Entity by Id
1 | public async Task<HttpResponseMessage> Get(string entityName, int id) |
Get Uniconta Entity Name and Property
1 | public async Task<HttpResponseMessage> Get(string entityName, [FromUri]UnicontaProperty property) |
Url to Get Uniconta Entity: https://odata.uniconta.com/api/Entities/GLDailyJournalClient
Insert Uniconta Entity
1 | public async Task<HttpResponseMessage> Insert([FromUri]string entityName, [FromBody]object value) |
Url to Insert Uniconta Entity: https://odata.uniconta.com/api/Entities/Insert/GLDailyJournalClient
Insert Uniconta Entity List
1 | public async Task<HttpResponseMessage> InsertList([FromUri]string entityName, [FromBody]object value) |
Url to Insert Uniconta Entity List: https://odata.uniconta.com/api/Entities/InsertList/GLDailyJournalClient
Delete Uniconta Entity
1 | public async Task<HttpResponseMessage> Delete(string entityName, [FromBody]object value) |
Url to Delete Uniconta Entity: https://odata.uniconta.com/api/Entities/Delete/GLDailyJournalClient
Delete Uniconta Entity List
1 | public async Task<HttpResponseMessage> DeleteList(string entityName, [FromBody]object value) |
Url to Delete Uniconta Entity List: https://odata.uniconta.com/api/Entities/DeleteList/GLDailyJournalClient
Update Uniconta Entity
1 | public async Task<HttpResponseMessage> Update([FromUri]string entityName, [FromBody]object value) |
Url to Update Uniconta Entity: https://odata.uniconta.com/api/Entities/Update/GLDailyJournalClient
Update Uniconta Entity List
1 | public async Task<HttpResponseMessage> UpdateList([FromUri]string entityName, [FromBody]object value) |
Url to Update Uniconta Entity List: https://odata.uniconta.com/api/Entities/UpdateList/GLDailyJournalClient
Read Uniconta Entity
1 | public async Task<HttpResponseMessage> Read([FromUri]string entityName, [FromBody]object value) |
Url to Read Uniconta Entity: https://odata.uniconta.com/api/Entities/Read/GLDailyJournalClient
Beispiel downloaden