Отсутствуют мапинги функций обновления и удаления API
Добавьте, пожалуйста, функции изменения и удаления ко всем сущностями(как менять статус сделки после Оплаты или Отказа??). Добавьте, пожалуйста, к сущности финанса привязку к сделке, иначе при создании потом и не поймешь, откуда взялся финанс. Я уверен, что такие мелкие изменения не займут более дня, а пригодность и удобство API возрастет во много раз.
Например, вот что выдает запрос "DELETE https://api.myfreshcloud.com/deal(437)":
{"error":{"code":"","message":{"lang":"en-US","value":"An error occurred while processing this request."},"innererror":{"message":"Cannot find the DeleteFunctionMapping for EntityType 'deal' in the mapping file.","type":"System.Data.Entity.Infrastructure.DbUpdateException","stacktrace":" at System.Data.Entity.Internal.InternalContext.SaveChanges()\r\n at System.Data.Services.Providers.ObjectContextServiceProvider.SaveChanges()\r\n at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)\r\n at System.Data.Services.DataService`1.HandleRequest()","internalexception":{"message":"Cannot find the DeleteFunctionMapping for EntityType 'deal' in the mapping file.","type":"System.Data.UpdateException","stacktrace":" at System.Data.Mapping.Update.Internal.ModificationFunctionMappingTranslator.EntitySetTranslator.GetFunctionMapping(ExtractedStateEntry stateEntry)\r\n at System.Data.Mapping.Update.Internal.ModificationFunctionMappingTranslator.EntitySetTranslator.Translate(UpdateTranslator translator, ExtractedStateEntry stateEntry)\r\n at System.Data.Mapping.Update.Internal.UpdateTranslator.<ProduceFunctionCommands>d__10.MoveNext()\r\n at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext()\r\n at System.Data.Mapping.Update.Internal.UpdateCommandOrderer..ctor(IEnumerable`1 commands, UpdateTranslator translator)\r\n at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)\r\n at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)\r\n at System.Data.Entity.Internal.InternalContext.SaveChanges()"}}}}
Сервис поддержки клиентов работает на платформе UserEcho