Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 878 Bytes

refit.md

File metadata and controls

35 lines (22 loc) · 878 Bytes

Refit

MissingMethodException

An unhandled exception of type 'System.MissingMethodException' occurred in mscorlib.dll Additional information: Constructor on type 'JE.Api.RestaurantManagement.Services.Restaurant.AutoGeneratedIRestaurantEventApi' not found. occurred

After I remove FunctionalWay, it works fine. Refit gets weird once the project references netstandard2.0

Resource

Usage

// create interface
// set verb, route, header, and body
[Post("/v1/{tenant}/restaurants/{restaurantId}/events/offline")]
Task<RestaurantOfflineEventResponse> OfflineRestaurant(
    [Header("X-JE-User-Role")] string userRole, 
    [Header("X-JE-Requester")] string requester, 
    string tenant, 
    int restaurantId);