Skip to content

Releases: alisinabh/prex

v0.0.3

24 Jun 03:01
Compare
Choose a tag to compare
v0.0.3 Pre-release
Pre-release

1. Support url parameters

Url parameters are now supported in prex v0.0.3

def list_all_users(since \\ nil, limit \\ nil) do
  req_url = Path.join @base_url, "/users?limit=#{limit |> URI.encode_www_form}" <>
   (if since != nil, do: "since=#{since |> URI.encode_www_form}", else: "")

  HTTPoison.request(:get, req_url, body: Poison.encode!(%{"since" => since, "limit" => limit}), headers: ["Content-Type": "application/json"])
end

Current approach is a bit messy. But it's flexible and since prex is not intended to be there in runtime o preferred not to make any dependencies fromscafolded code.

In order to have url parameters, they should be present in action/resource parameters.

2. Fix unnamed resources bug

Resources/ResourceGroups with no names are not a problem anymore.

v0.0.2

17 Jun 01:41
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release

Changes

  • Fix folder conflicts that caused multi group API code generation to crash

v0.0.1

16 Jun 22:46
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

Initial release for testing