Interface RestRequest


@JsType(isNative=true, name="ng.RestRequest", namespace="<global>") public interface RestRequest
Normalized request object passed from RestService to a RestBackend. Backends receive expanded URLs and already-separated request options, so they can focus on transport, persistence, or cache policy.
  • Method Details

    • create

      @JsOverlay static RestRequest create()
    • getCollectionUrl

      @JsProperty String getCollectionUrl()
      Collection URL used for broad cache invalidation.
    • getData

      @JsProperty Object getData()
      Request body for write operations.
    • getId

      @JsProperty Object getId()
      Resource identifier for entity operations.
    • getMethod

      @JsProperty String getMethod()
      Resource operation method.
    • getOptions

      @JsProperty jsinterop.base.JsPropertyMap<Object> getOptions()
      Backend-specific request options.
    • getParams

      @JsProperty jsinterop.base.JsPropertyMap<Object> getParams()
      URI template and query parameters.
    • getUrl

      @JsProperty String getUrl()
      Expanded request URL.
    • setCollectionUrl

      @JsProperty void setCollectionUrl(String collectionUrl)
      Collection URL used for broad cache invalidation.
    • setData

      @JsProperty void setData(Object data)
      Request body for write operations.
    • setId

      @JsProperty void setId(Object id)
      Resource identifier for entity operations.
    • setMethod

      @JsProperty void setMethod(String method)
      Resource operation method.
    • setOptions

      @JsProperty void setOptions(jsinterop.base.JsPropertyMap<Object> options)
      Backend-specific request options.
    • setParams

      @JsProperty void setParams(jsinterop.base.JsPropertyMap<Object> params)
      URI template and query parameters.
    • setUrl

      @JsProperty void setUrl(String url)
      Expanded request URL.