Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View thiagogsr's full-sized avatar

Thiago Guimarães thiagogsr

  • Sergipe - Brazil
  • 07:54 (UTC -03:00)
View GitHub Profile
@thiagogsr
thiagogsr / apis.md
Last active March 19, 2021 12:17
Voting
method path body
POST /admin/sign_in { email: "", password: "" }
POST /admin/elections { name: "", cover: "", notice: "", starts_at: "", ends_at: "" }
PUT /admin/elections/:id { name: "", cover: "", notice: "", starts_at: "", ends_at: "" }
@thiagogsr
thiagogsr / application.ex
Last active March 28, 2019 17:38
Task supervisor
defmodule A.Application do
@moduledoc """
Application GenServer. It starts all supervisors and workers.
"""
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do