View Source RESTApi (eli v0.1.0)

Documentation for RESTApi.

Summary

Functions

Delete.

Examples

iex> RESTApi.delete("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:delete

Get.

Examples

iex> RESTApi.get("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:get

Head.

Examples

iex> RESTApi.head("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:head

Patch.

Examples

iex> RESTApi.patch("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:patch

Post.

Examples

iex> RESTApi.post("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:post

Put.

Examples

iex> RESTApi.put("/rest/your/endpoint", %{params: %{foo: "bar"}, headers: %{token: "A_TOKEN" }})
:put