Webigail
    Preparing search index...

    Interface IZRestfulUpsert<T>

    A restful service that can upsert resources.

    interface IZRestfulUpsert<T> {
        upsert(body: T): Promise<T>;
    }

    Type Parameters

    • T

      The type of resource being created/updated.

    Hierarchy (View Summary)

    Index

    Methods

    Methods

    • Creates a new entity or updates an existing entity.

      This is determined by the body parameters on whether or not an entity already exists.

      This uses the PUT verb.

      Parameters

      • body: T

        The post body that represents the resource to create or update.

      Returns Promise<T>

      The resource that was created or updated.