Skip to content

Instantly share code, notes, and snippets.

@Markonis
Created March 18, 2019 16:07

Revisions

  1. Markonis created this gist Mar 18, 2019.
    7 changes: 7 additions & 0 deletions api.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    const api = {
    create: new ApiEndpoint<Recipe, Recipe>(),
    read: new ApiEndpoint<FindParams, Recipe>(),
    update: new ApiEndpoint<Recipe, Recipe>(),
    destroy: new ApiEndpoint<FindParams, undefined>(),
    list: new ApiEndpoint<undefined, Recipe[]>()
    };