CAMI-Back

v0.1.0

Back

To start your Phoenix server:

Run mix setup to install and setup dependencies

Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

NOTE for developpers

To get data from api (and not web view), add api in front of the link:
not localhost:4000/user, but localhost:4000/api/user

Learn more

Official website: https://www.phoenixframework.org/

Guides: https://hexdocs.pm/phoenix/overview.html

Docs: https://hexdocs.pm/phoenix

Forum: https://elixirforum.com/c/phoenix-forum

Source: https://github.com/phoenixframework/phoenix

Back

Back keeps the contexts that define your domain and business logic.

Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others.

Back.Automatons

The Automatons context.

Summary

Functions

change_automaton(automaton, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton changes.

create_automaton(attrs \\ %{})

Creates a automaton.

delete_automaton(automaton)

Deletes a automaton.

get_automaton!(id)

Gets a single automaton.

get_automaton_img!(id)

get_recents!(nb)

list_automaton()

Returns the list of automaton.

list_automaton_with_img()

Gets all automaton with their image field preloaded

update_automaton(automaton, attrs)

Updates a automaton.

Functions

change_automaton(automaton, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton changes.

Examples

iex> change_automaton(automaton)
%Ecto.Changeset{data: %Automaton{}}

create_automaton(attrs \\ %{})

Creates a automaton.

Examples

iex> create_automaton(%{field: value})
{:ok, %Automaton{}}

iex> create_automaton(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_automaton(automaton)

Deletes a automaton.

Examples

iex> delete_automaton(automaton)
{:ok, %Automaton{}}

iex> delete_automaton(automaton)
{:error, %Ecto.Changeset{}}

get_automaton!(id)

Gets a single automaton.

Raises Ecto.NoResultsError if the Automaton does not exist.

Examples

iex> get_automaton!(123)
%Automaton{}

iex> get_automaton!(456)
** (Ecto.NoResultsError)

get_automaton_img!(id)

get_recents!(nb)

list_automaton()

Returns the list of automaton.

Examples

iex> list_automaton()
[%Automaton{}, ...]

list_automaton_with_img()

Gets all automaton with their image field preloaded

Examples

iex> list_automaton_with_img()
[%Automaton{:image: [], ...}, ...]

update_automaton(automaton, attrs)

Updates a automaton.

Examples

iex> update_automaton(automaton, %{field: new_value})
{:ok, %Automaton{}}

iex> update_automaton(automaton, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Automatons.Automaton

Back.Automatons.AutomatonTags

The Automatons.AutomatonTags context.

Summary

Functions

change_automaton_tag(automaton_tag, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton_tag changes.

create_automaton_tag(attrs \\ %{})

Creates a automaton_tag.

delete_automaton_tag(automaton_tag)

Deletes a automaton_tag.

get_automaton_tag!(id)

Gets a single automaton_tag.

get_tags_by_automaton_id!(id)

list_automaton_tag()

Returns the list of automaton_tag.

update_automaton_tag(automaton_tag, attrs)

Updates a automaton_tag.

Functions

change_automaton_tag(automaton_tag, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton_tag changes.

Examples

iex> change_automaton_tag(automaton_tag)
%Ecto.Changeset{data: %AutomatonTag{}}

create_automaton_tag(attrs \\ %{})

Creates a automaton_tag.

Examples

iex> create_automaton_tag(%{field: value})
{:ok, %AutomatonTag{}}

iex> create_automaton_tag(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_automaton_tag(automaton_tag)

Deletes a automaton_tag.

Examples

iex> delete_automaton_tag(automaton_tag)
{:ok, %AutomatonTag{}}

iex> delete_automaton_tag(automaton_tag)
{:error, %Ecto.Changeset{}}

get_automaton_tag!(id)

Gets a single automaton_tag.

Raises Ecto.NoResultsError if the Automaton tag does not exist.

Examples

iex> get_automaton_tag!(123)
%AutomatonTag{}

iex> get_automaton_tag!(456)
** (Ecto.NoResultsError)

get_tags_by_automaton_id!(id)

list_automaton_tag()

Returns the list of automaton_tag.

Examples

iex> list_automaton_tag()
[%AutomatonTag{}, ...]

update_automaton_tag(automaton_tag, attrs)

Updates a automaton_tag.

Examples

iex> update_automaton_tag(automaton_tag, %{field: new_value})
{:ok, %AutomatonTag{}}

iex> update_automaton_tag(automaton_tag, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Automatons.AutomatonTags.AutomatonTag

Back.Automatons.Tags

The Automatons.Tags context.

Summary

Functions

change_tag(tag, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking tag changes.

create_tag(attrs \\ %{})

Creates a tag.

delete_tag(tag)

Deletes a tag.

get_tag!(id)

Gets a single tag.

list_tag()

Returns the list of tag.

update_tag(tag, attrs)

Updates a tag.

Functions

change_tag(tag, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking tag changes.

Examples

iex> change_tag(tag)
%Ecto.Changeset{data: %Tag{}}

create_tag(attrs \\ %{})

Creates a tag.

Examples

iex> create_tag(%{field: value})
{:ok, %Tag{}}

iex> create_tag(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_tag(tag)

Deletes a tag.

Examples

iex> delete_tag(tag)
{:ok, %Tag{}}

iex> delete_tag(tag)
{:error, %Ecto.Changeset{}}

get_tag!(id)

Gets a single tag.

Raises Ecto.NoResultsError if the Tag does not exist.

Examples

iex> get_tag!(123)
%Tag{}

iex> get_tag!(456)
** (Ecto.NoResultsError)

list_tag()

Returns the list of tag.

Examples

iex> list_tag()
[%Tag{}, ...]

update_tag(tag, attrs)

Updates a tag.

Examples

iex> update_tag(tag, %{field: new_value})
{:ok, %Tag{}}

iex> update_tag(tag, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Automatons.Tags.Tag

Back.AutomatonsComments

The AutomatonsComments context.

Summary

Functions

change_automaton_comments(automaton_comments, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton_comments changes.

create_automaton_comments(attrs \\ %{})

Creates a automaton_comments.

delete_automaton_comments(automaton_comments)

Deletes a automaton_comments.

get_automaton_comments!(id)

Gets a single automaton_comments.

get_by_automaton_id!(id)

list_automaton_comment()

Returns the list of automaton_comment.

update_automaton_comments(automaton_comments, attrs)

Updates a automaton_comments.

Functions

change_automaton_comments(automaton_comments, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking automaton_comments changes.

Examples

iex> change_automaton_comments(automaton_comments)
%Ecto.Changeset{data: %AutomatonComments{}}

create_automaton_comments(attrs \\ %{})

Creates a automaton_comments.

Examples

iex> create_automaton_comments(%{field: value})
{:ok, %AutomatonComments{}}

iex> create_automaton_comments(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_automaton_comments(automaton_comments)

Deletes a automaton_comments.

Examples

iex> delete_automaton_comments(automaton_comments)
{:ok, %AutomatonComments{}}

iex> delete_automaton_comments(automaton_comments)
{:error, %Ecto.Changeset{}}

get_automaton_comments!(id)

Gets a single automaton_comments.

Raises Ecto.NoResultsError if the Automaton comments does not exist.

Examples

iex> get_automaton_comments!(123)
%AutomatonComments{}

iex> get_automaton_comments!(456)
** (Ecto.NoResultsError)

get_by_automaton_id!(id)

list_automaton_comment()

Returns the list of automaton_comment.

Examples

iex> list_automaton_comment()
[%AutomatonComments{}, ...]

update_automaton_comments(automaton_comments, attrs)

Updates a automaton_comments.

Examples

iex> update_automaton_comments(automaton_comments, %{field: new_value})
{:ok, %AutomatonComments{}}

iex> update_automaton_comments(automaton_comments, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.AutomatonsComments.AutomatonComments

Back.Comments

The Comments context.

Summary

Functions

change_comment(comment, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking comment changes.

create_comment(attrs \\ %{})

Creates a comment.

delete_comment(comment)

Deletes a comment.

get_comment!(id)

Gets a single comment.

list_comment()

Returns the list of comment.

update_comment(comment, attrs)

Updates a comment.

Functions

change_comment(comment, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking comment changes.

Examples

iex> change_comment(comment)
%Ecto.Changeset{data: %Comment{}}

create_comment(attrs \\ %{})

Creates a comment.

Examples

iex> create_comment(%{field: value})
{:ok, %Comment{}}

iex> create_comment(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_comment(comment)

Deletes a comment.

Examples

iex> delete_comment(comment)
{:ok, %Comment{}}

iex> delete_comment(comment)
{:error, %Ecto.Changeset{}}

get_comment!(id)

Gets a single comment.

Raises Ecto.NoResultsError if the Comment does not exist.

Examples

iex> get_comment!(123)
%Comment{}

iex> get_comment!(456)
** (Ecto.NoResultsError)

list_comment()

Returns the list of comment.

Examples

iex> list_comment()
[%Comment{}, ...]

update_comment(comment, attrs)

Updates a comment.

Examples

iex> update_comment(comment, %{field: new_value})
{:ok, %Comment{}}

iex> update_comment(comment, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Comments.Comment

Back.Data.Image

The Data.Image context.

Summary

Functions

change_images(images, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking images changes.

create_images(attrs \\ %{})

Creates a images.

delete_images(images)

Deletes a images.

get_image_automaton_id(automaton_id)

get_image_user_id(user_id)

get_images!(id)

Gets a single images.

list_image()

Returns the list of image.

update_images(images, attrs)

Updates a images.

Functions

change_images(images, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking images changes.

Examples

iex> change_images(images)
%Ecto.Changeset{data: %Images{}}

create_images(attrs \\ %{})

Creates a images.

Examples

iex> create_images(%{field: value})
{:ok, %Images{}}

iex> create_images(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_images(images)

Deletes a images.

Examples

iex> delete_images(images)
{:ok, %Images{}}

iex> delete_images(images)
{:error, %Ecto.Changeset{}}

get_image_automaton_id(automaton_id)

get_image_user_id(user_id)

get_images!(id)

Gets a single images.

Raises Ecto.NoResultsError if the Images does not exist.

Examples

iex> get_images!(123)
%Images{}

iex> get_images!(456)
** (Ecto.NoResultsError)

list_image()

Returns the list of image.

Examples

iex> list_image()
[%Images{}, ...]

update_images(images, attrs)

Updates a images.

Examples

iex> update_images(images, %{field: new_value})
{:ok, %Images{}}

iex> update_images(images, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Data.Image.Images

Back.Favorites

The Favorites context.

Summary

Functions

change_favorite(favorite, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking favorite changes.

create_favorite(attrs \\ %{})

Creates a favorite.

delete_favorite(favorite)

Deletes a favorite.

get_by_user!(user_id)

get_favorite!(id)

Gets a single favorite.

list_favorite()

Returns the list of favorite.

update_favorite(favorite, attrs)

Updates a favorite.

Functions

change_favorite(favorite, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking favorite changes.

Examples

iex> change_favorite(favorite)
%Ecto.Changeset{data: %Favorite{}}

create_favorite(attrs \\ %{})

Creates a favorite.

Examples

iex> create_favorite(%{field: value})
{:ok, %Favorite{}}

iex> create_favorite(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_favorite(favorite)

Deletes a favorite.

Examples

iex> delete_favorite(favorite)
{:ok, %Favorite{}}

iex> delete_favorite(favorite)
{:error, %Ecto.Changeset{}}

get_by_user!(user_id)

get_favorite!(id)

Gets a single favorite.

Raises Ecto.NoResultsError if the Favorite does not exist.

Examples

iex> get_favorite!(123)
%Favorite{}

iex> get_favorite!(456)
** (Ecto.NoResultsError)

list_favorite()

Returns the list of favorite.

Examples

iex> list_favorite()
[%Favorite{}, ...]

update_favorite(favorite, attrs)

Updates a favorite.

Examples

iex> update_favorite(favorite, %{field: new_value})
{:ok, %Favorite{}}

iex> update_favorite(favorite, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Favorites.Favorite

Back.Mailer

Summary

Functions

deliver(email, config \\ [])

Delivers an email.

deliver!(email, config \\ [])

Delivers an email, raises on error.

deliver_many(emails, config \\ [])

Delivers a list of emails.

Functions

deliver(email, config \\ [])

@spec deliver(Swoosh.Email.t(), Keyword.t()) :: {:ok, term()} | {:error, term()}

Delivers an email.

If the email is delivered it returns an {:ok, result} tuple. If it fails, returns an {:error, error} tuple.

deliver!(email, config \\ [])

@spec deliver!(Swoosh.Email.t(), Keyword.t()) :: term() | no_return()

Delivers an email, raises on error.

If the email is delivered, it returns the result. If it fails, it raises a DeliveryError.

deliver_many(emails, config \\ [])

@spec deliver_many(
  [
    %Swoosh.Email{
      assigns: term(),
      attachments: term(),
      bcc: term(),
      cc: term(),
      from: term(),
      headers: term(),
      html_body: term(),
      private: term(),
      provider_options: term(),
      reply_to: term(),
      subject: term(),
      text_body: term(),
      to: term()
    }
  ],
  Keyword.t()
) :: {:ok, term()} | {:error, term()}

Delivers a list of emails.

It accepts a list of %Swoosh.Email{} as its first parameter.

Back.Posts

The Posts context.

Summary

Functions

change_post(post, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking post changes.

create_post(attrs \\ %{})

Creates a post.

delete_post(post)

Deletes a post.

get_post!(id)

Gets a single post.

list_post()

Returns the list of post.

update_post(post, attrs)

Updates a post.

Functions

change_post(post, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking post changes.

Examples

iex> change_post(post)
%Ecto.Changeset{data: %Post{}}

create_post(attrs \\ %{})

Creates a post.

Examples

iex> create_post(%{field: value})
{:ok, %Post{}}

iex> create_post(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_post(post)

Deletes a post.

Examples

iex> delete_post(post)
{:ok, %Post{}}

iex> delete_post(post)
{:error, %Ecto.Changeset{}}

get_post!(id)

Gets a single post.

Raises Ecto.NoResultsError if the Post does not exist.

Examples

iex> get_post!(123)
%Post{}

iex> get_post!(456)
** (Ecto.NoResultsError)

list_post()

Returns the list of post.

Examples

iex> list_post()
[%Post{}, ...]

update_post(post, attrs)

Updates a post.

Examples

iex> update_post(post, %{field: new_value})
{:ok, %Post{}}

iex> update_post(post, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Posts.Post

Back.Posts.PostActions

The Posts.PostActions context.

Summary

Functions

change_post_actions(post_actions, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking post_actions changes.

create_post_actions(attrs \\ %{})

Creates a post_actions.

delete_post_actions(post_actions)

Deletes a post_actions.

get_post_actions!(id)

Gets a single post_actions.

list_posts_actions()

Returns the list of posts_actions.

update_post_actions(post_actions, attrs)

Updates a post_actions.

Functions

change_post_actions(post_actions, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking post_actions changes.

Examples

iex> change_post_actions(post_actions)
%Ecto.Changeset{data: %PostActions{}}

create_post_actions(attrs \\ %{})

Creates a post_actions.

Examples

iex> create_post_actions(%{field: value})
{:ok, %PostActions{}}

iex> create_post_actions(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_post_actions(post_actions)

Deletes a post_actions.

Examples

iex> delete_post_actions(post_actions)
{:ok, %PostActions{}}

iex> delete_post_actions(post_actions)
{:error, %Ecto.Changeset{}}

get_post_actions!(id)

Gets a single post_actions.

Raises Ecto.NoResultsError if the Post actions does not exist.

Examples

iex> get_post_actions!(123)
%PostActions{}

iex> get_post_actions!(456)
** (Ecto.NoResultsError)

list_posts_actions()

Returns the list of posts_actions.

Examples

iex> list_posts_actions()
[%PostActions{}, ...]

update_post_actions(post_actions, attrs)

Updates a post_actions.

Examples

iex> update_post_actions(post_actions, %{field: new_value})
{:ok, %PostActions{}}

iex> update_post_actions(post_actions, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Posts.PostActions.PostAction

Back.Repo

Summary

Functions

aggregate(queryable, aggregate, opts \\ [])

Callback implementation for Ecto.Repo.aggregate/3.

aggregate(queryable, aggregate, field, opts)

Callback implementation for Ecto.Repo.aggregate/4.

all(queryable, opts \\ [])

Callback implementation for Ecto.Repo.all/2.

checked_out?()

Callback implementation for Ecto.Repo.checked_out?/0.

checkout(fun, opts \\ [])

Callback implementation for Ecto.Repo.checkout/2.

child_spec(opts)

config()

Callback implementation for Ecto.Repo.config/0.

default_options(operation)

Callback implementation for Ecto.Repo.default_options/1.

delete(struct, opts \\ [])

Callback implementation for Ecto.Repo.delete/2.

delete!(struct, opts \\ [])

Callback implementation for Ecto.Repo.delete!/2.

delete_all(queryable, opts \\ [])

Callback implementation for Ecto.Repo.delete_all/2.

disconnect_all(interval, opts \\ [])

A convenience function for SQL-based repositories that forces all connections in the pool to disconnect within the given interval.

exists?(queryable, opts \\ [])

Callback implementation for Ecto.Repo.exists?/2.

explain(operation, queryable, opts \\ [])

A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar depending on the adapter to obtain statistics for the given query.

get(queryable, id, opts \\ [])

Callback implementation for Ecto.Repo.get/3.

get!(queryable, id, opts \\ [])

Callback implementation for Ecto.Repo.get!/3.

get_by(queryable, clauses, opts \\ [])

Callback implementation for Ecto.Repo.get_by/3.

get_by!(queryable, clauses, opts \\ [])

Callback implementation for Ecto.Repo.get_by!/3.

get_dynamic_repo()

Callback implementation for Ecto.Repo.get_dynamic_repo/0.

in_transaction?()

Callback implementation for Ecto.Repo.in_transaction?/0.

insert(struct, opts \\ [])

Callback implementation for Ecto.Repo.insert/2.

insert!(struct, opts \\ [])

Callback implementation for Ecto.Repo.insert!/2.

insert_all(schema_or_source, entries, opts \\ [])

Callback implementation for Ecto.Repo.insert_all/3.

insert_or_update(changeset, opts \\ [])

Callback implementation for Ecto.Repo.insert_or_update/2.

insert_or_update!(changeset, opts \\ [])

Callback implementation for Ecto.Repo.insert_or_update!/2.

load(schema_or_types, data)

Callback implementation for Ecto.Repo.load/2.

one(queryable, opts \\ [])

Callback implementation for Ecto.Repo.one/2.

one!(queryable, opts \\ [])

Callback implementation for Ecto.Repo.one!/2.

preload(struct_or_structs_or_nil, preloads, opts \\ [])

Callback implementation for Ecto.Repo.preload/3.

prepare_query(operation, query, opts)

Callback implementation for Ecto.Repo.prepare_query/3.

put_dynamic_repo(dynamic)

Callback implementation for Ecto.Repo.put_dynamic_repo/1.

query(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

query!(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

query_many(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given multi-result query.

query_many!(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given multi-result query.

reload(queryable, opts \\ [])

Callback implementation for Ecto.Repo.reload/2.

reload!(queryable, opts \\ [])

Callback implementation for Ecto.Repo.reload!/2.

rollback(value)

Callback implementation for Ecto.Repo.rollback/1.

start_link(opts \\ [])

Callback implementation for Ecto.Repo.start_link/1.

stop(timeout \\ 5000)

Callback implementation for Ecto.Repo.stop/1.

stream(queryable, opts \\ [])

Callback implementation for Ecto.Repo.stream/2.

to_sql(operation, queryable)

A convenience function for SQL-based repositories that translates the given query to SQL.

transaction(fun_or_multi, opts \\ [])

Callback implementation for Ecto.Repo.transaction/2.

update(struct, opts \\ [])

Callback implementation for Ecto.Repo.update/2.

update!(struct, opts \\ [])

Callback implementation for Ecto.Repo.update!/2.

update_all(queryable, updates, opts \\ [])

Callback implementation for Ecto.Repo.update_all/3.

Functions

aggregate(queryable, aggregate, opts \\ [])

Callback implementation for Ecto.Repo.aggregate/3.

aggregate(queryable, aggregate, field, opts)

Callback implementation for Ecto.Repo.aggregate/4.

all(queryable, opts \\ [])

Callback implementation for Ecto.Repo.all/2.

checked_out?()

Callback implementation for Ecto.Repo.checked_out?/0.

checkout(fun, opts \\ [])

Callback implementation for Ecto.Repo.checkout/2.

child_spec(opts)

config()

Callback implementation for Ecto.Repo.config/0.

default_options(operation)

Callback implementation for Ecto.Repo.default_options/1.

delete(struct, opts \\ [])

Callback implementation for Ecto.Repo.delete/2.

delete!(struct, opts \\ [])

Callback implementation for Ecto.Repo.delete!/2.

delete_all(queryable, opts \\ [])

Callback implementation for Ecto.Repo.delete_all/2.

disconnect_all(interval, opts \\ [])

A convenience function for SQL-based repositories that forces all connections in the pool to disconnect within the given interval.

See Ecto.Adapters.SQL.disconnect_all/3 for more information.

exists?(queryable, opts \\ [])

Callback implementation for Ecto.Repo.exists?/2.

explain(operation, queryable, opts \\ [])

A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar depending on the adapter to obtain statistics for the given query.

See Ecto.Adapters.SQL.explain/4 for more information.

get(queryable, id, opts \\ [])

Callback implementation for Ecto.Repo.get/3.

get!(queryable, id, opts \\ [])

Callback implementation for Ecto.Repo.get!/3.

get_by(queryable, clauses, opts \\ [])

Callback implementation for Ecto.Repo.get_by/3.

get_by!(queryable, clauses, opts \\ [])

Callback implementation for Ecto.Repo.get_by!/3.

get_dynamic_repo()

Callback implementation for Ecto.Repo.get_dynamic_repo/0.

in_transaction?()

Callback implementation for Ecto.Repo.in_transaction?/0.

insert(struct, opts \\ [])

Callback implementation for Ecto.Repo.insert/2.

insert!(struct, opts \\ [])

Callback implementation for Ecto.Repo.insert!/2.

insert_all(schema_or_source, entries, opts \\ [])

Callback implementation for Ecto.Repo.insert_all/3.

insert_or_update(changeset, opts \\ [])

Callback implementation for Ecto.Repo.insert_or_update/2.

insert_or_update!(changeset, opts \\ [])

Callback implementation for Ecto.Repo.insert_or_update!/2.

load(schema_or_types, data)

Callback implementation for Ecto.Repo.load/2.

one(queryable, opts \\ [])

Callback implementation for Ecto.Repo.one/2.

one!(queryable, opts \\ [])

Callback implementation for Ecto.Repo.one!/2.

preload(struct_or_structs_or_nil, preloads, opts \\ [])

Callback implementation for Ecto.Repo.preload/3.

prepare_query(operation, query, opts)

Callback implementation for Ecto.Repo.prepare_query/3.

put_dynamic_repo(dynamic)

Callback implementation for Ecto.Repo.put_dynamic_repo/1.

query(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

See Ecto.Adapters.SQL.query/4 for more information.

query!(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

See Ecto.Adapters.SQL.query!/4 for more information.

query_many(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given multi-result query.

See Ecto.Adapters.SQL.query_many/4 for more information.

query_many!(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given multi-result query.

See Ecto.Adapters.SQL.query_many!/4 for more information.

reload(queryable, opts \\ [])

Callback implementation for Ecto.Repo.reload/2.

reload!(queryable, opts \\ [])

Callback implementation for Ecto.Repo.reload!/2.

rollback(value)

@spec rollback(term()) :: no_return()

Callback implementation for Ecto.Repo.rollback/1.

start_link(opts \\ [])

Callback implementation for Ecto.Repo.start_link/1.

stop(timeout \\ 5000)

Callback implementation for Ecto.Repo.stop/1.

stream(queryable, opts \\ [])

Callback implementation for Ecto.Repo.stream/2.

to_sql(operation, queryable)

A convenience function for SQL-based repositories that translates the given query to SQL.

See Ecto.Adapters.SQL.to_sql/3 for more information.

transaction(fun_or_multi, opts \\ [])

Callback implementation for Ecto.Repo.transaction/2.

update(struct, opts \\ [])

Callback implementation for Ecto.Repo.update/2.

update!(struct, opts \\ [])

Callback implementation for Ecto.Repo.update!/2.

update_all(queryable, updates, opts \\ [])

Callback implementation for Ecto.Repo.update_all/3.

Back.UserAction

The UserAction context.

Summary

Functions

change_blocked(blocked, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking blocked changes.

create_blocked(attrs \\ %{})

Creates a blocked.

delete_blocked(blocked)

Deletes a blocked.

get_blocked!(id)

Gets a single blocked.

list_blocked()

Returns the list of blocked.

update_blocked(blocked, attrs)

Updates a blocked.

Functions

change_blocked(blocked, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking blocked changes.

Examples

iex> change_blocked(blocked)
%Ecto.Changeset{data: %Blocked{}}

create_blocked(attrs \\ %{})

Creates a blocked.

Examples

iex> create_blocked(%{field: value})
{:ok, %Blocked{}}

iex> create_blocked(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_blocked(blocked)

Deletes a blocked.

Examples

iex> delete_blocked(blocked)
{:ok, %Blocked{}}

iex> delete_blocked(blocked)
{:error, %Ecto.Changeset{}}

get_blocked!(id)

Gets a single blocked.

Raises Ecto.NoResultsError if the Blocked does not exist.

Examples

iex> get_blocked!(123)
%Blocked{}

iex> get_blocked!(456)
** (Ecto.NoResultsError)

list_blocked()

Returns the list of blocked.

Examples

iex> list_blocked()
[%Blocked{}, ...]

update_blocked(blocked, attrs)

Updates a blocked.

Examples

iex> update_blocked(blocked, %{field: new_value})
{:ok, %Blocked{}}

iex> update_blocked(blocked, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.UserAction.Blocked

Back.Users

The Users context.

Summary

Functions

authenticate_user(email, plain_text_password)

change_user(user, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking user changes.

create_user(attrs \\ %{})

Creates a user.

delete_user(user)

Deletes a user.

get_user!(user_id)

Gets a single user.

get_user_by_email_and_password(email, password)

get_user_pic!(user_id)

list_user()

Returns the list of user.

list_user_with_pic()

update_user(user, attrs)

Updates a user.

Functions

authenticate_user(email, plain_text_password)

change_user(user, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking user changes.

Examples

iex> change_user(user)
%Ecto.Changeset{data: %User{}}

create_user(attrs \\ %{})

Creates a user.

Examples

iex> create_user(%{field: value})
{:ok, %User{}}

iex> create_user(%{field: bad_value})
{:error, %Ecto.Changeset{}}

delete_user(user)

Deletes a user.

Examples

iex> delete_user(user)
{:ok, %User{}}

iex> delete_user(user)
{:error, %Ecto.Changeset{}}

get_user!(user_id)

Gets a single user.

Raises Ecto.NoResultsError if the User does not exist.

Examples

iex> get_user!(123)
%User{}

iex> get_user!(456)
** (Ecto.NoResultsError)

get_user_by_email_and_password(email, password)

get_user_pic!(user_id)

list_user()

Returns the list of user.

Examples

iex> list_user()
[%User{}, ...]

list_user_with_pic()

update_user(user, attrs)

Updates a user.

Examples

iex> update_user(user, %{field: new_value})
{:ok, %User{}}

iex> update_user(user, %{field: bad_value})
{:error, %Ecto.Changeset{}}

Back.Users.ErrorHandler

Back.Users.Guardian

Summary

Functions

after_encode_and_sign(r, claims, token, _)

Callback implementation for Guardian.after_encode_and_sign/4.

after_sign_in(conn, r, t, c, o)

Callback implementation for Guardian.after_sign_in/5.

before_sign_out(conn, location, opts)

Callback implementation for Guardian.before_sign_out/3.

build_claims(c, _, _)

Callback implementation for Guardian.build_claims/3.

config()

Fetches the configuration for this module.

config(key, default \\ nil)

Returns a resolved value of the configuration found at a key.

decode_and_verify(token, claims_to_check \\ %{}, opts \\ [])

Decodes and verifies a token using the configuration on the implementation module.

default_token_type()

The default type of token for this module.

encode_and_sign(resource, claims \\ %{}, opts \\ [])

Encodes the claims.

exchange(token, from_type, to_type, opts \\ [])

Exchanges a token of one type for another.

on_exchange(old_stuff, new_stuff, options)

Callback implementation for Guardian.on_exchange/3.

on_refresh(old_stuff, new_stuff, options)

Callback implementation for Guardian.on_refresh/3.

on_revoke(claims, token, options)

Callback implementation for Guardian.on_revoke/3.

on_verify(claims, token, options)

Callback implementation for Guardian.on_verify/3.

peek(token)

Provides the content of the token but without verification of either the claims or the signature.

refresh(old_token, opts \\ [])

Refresh a token.

resource_from_claims(map)

Callback implementation for Guardian.resource_from_claims/1.

resource_from_token(token, claims_to_check \\ %{}, opts \\ [])

Fetch the resource and claims directly from a token.

revoke(token, opts \\ [])

Revoke a token.

sliding_cookie(current_claims, current_resource, opts \\ [])

If Guardian.Plug.SlidingCookie is used, this callback will be invoked to return the new claims, or an error (which will mean the cookie will not be refreshed).

subject_for_token(user, claims)

Callback implementation for Guardian.subject_for_token/2.

verify_claims(claims, options)

Callback implementation for Guardian.verify_claims/2.

Functions

after_encode_and_sign(r, claims, token, _)

Callback implementation for Guardian.after_encode_and_sign/4.

after_sign_in(conn, r, t, c, o)

Callback implementation for Guardian.after_sign_in/5.

before_sign_out(conn, location, opts)

Callback implementation for Guardian.before_sign_out/3.

build_claims(c, _, _)

Callback implementation for Guardian.build_claims/3.

config()

@spec config() :: Keyword.t()

Fetches the configuration for this module.

config(key, default \\ nil)

@spec config(atom() | String.t(), any()) :: any()

Returns a resolved value of the configuration found at a key.

See Guardian.Config.resolve_value/1.

decode_and_verify(token, claims_to_check \\ %{}, opts \\ [])

@spec decode_and_verify(
  Guardian.Token.token(),
  Guardian.Token.claims(),
  Guardian.options()
) ::
  {:ok, Guardian.Token.claims()} | {:error, any()}

Decodes and verifies a token using the configuration on the implementation module.

See Guardian.decode_and_verify/4.

default_token_type()

@spec default_token_type() :: String.t()

The default type of token for this module.

encode_and_sign(resource, claims \\ %{}, opts \\ [])

@spec encode_and_sign(any(), Guardian.Token.claims(), Guardian.options()) ::
  {:ok, Guardian.Token.token(), Guardian.Token.claims()} | {:error, any()}

Encodes the claims.

See Guardian.encode_and_sign/4 for more information.

exchange(token, from_type, to_type, opts \\ [])

@spec exchange(
  token :: Guardian.Token.token(),
  from_type :: String.t() | [String.t(), ...],
  to_type :: String.t(),
  options :: Guardian.options()
) ::
  {:ok, {Guardian.Token.token(), Guardian.Token.claims()},
   {Guardian.Token.token(), Guardian.Token.claims()}}
  | {:error, any()}

Exchanges a token of one type for another.

See Guardian.exchange for more information.

on_exchange(old_stuff, new_stuff, options)

Callback implementation for Guardian.on_exchange/3.

on_refresh(old_stuff, new_stuff, options)

Callback implementation for Guardian.on_refresh/3.

on_revoke(claims, token, options)

Callback implementation for Guardian.on_revoke/3.

on_verify(claims, token, options)

Callback implementation for Guardian.on_verify/3.

peek(token)

@spec peek(String.t()) :: map()

Provides the content of the token but without verification of either the claims or the signature.

Claims will be present at the :claims key.

See Guardian.peek/2 for more information.

refresh(old_token, opts \\ [])

@spec refresh(Guardian.Token.token(), Guardian.options()) ::
  {:ok, {Guardian.Token.token(), Guardian.Token.claims()},
   {Guardian.Token.token(), Guardian.Token.claims()}}
  | {:error, any()}

Refresh a token.

See Guardian.refresh for more information.

resource_from_claims(map)

Callback implementation for Guardian.resource_from_claims/1.

resource_from_token(token, claims_to_check \\ %{}, opts \\ [])

@spec resource_from_token(
  token :: Guardian.Token.token(),
  claims_to_check :: Guardian.Token.claims() | nil,
  opts :: Guardian.options()
) :: {:ok, Guardian.Token.resource(), Guardian.Token.claims()} | {:error, any()}

Fetch the resource and claims directly from a token.

See Guardian.resource_from_token for more information.

revoke(token, opts \\ [])

@spec revoke(Guardian.Token.token(), Guardian.options()) ::
  {:ok, Guardian.Token.claims()} | {:error, any()}

Revoke a token.

See Guardian.revoke for more information.

sliding_cookie(current_claims, current_resource, opts \\ [])

@spec sliding_cookie(
  current_claims :: Guardian.Token.claims(),
  current_resource :: Guardian.Token.resource(),
  options :: Guardian.options()
) :: {:ok, new_claims :: Guardian.Token.claims()} | {:error, any()}

If Guardian.Plug.SlidingCookie is used, this callback will be invoked to return the new claims, or an error (which will mean the cookie will not be refreshed).

subject_for_token(user, claims)

Callback implementation for Guardian.subject_for_token/2.

verify_claims(claims, options)

Callback implementation for Guardian.verify_claims/2.

Back.Users.Guardian.Plug

Summary

Functions

authenticated?(conn, opts \\ [])

clear_remember_me(conn, opts \\ [])

current_claims(conn, opts \\ [])

current_resource(conn, opts \\ [])

current_token(conn, opts \\ [])

implementation()

put_current_claims(conn, claims, opts \\ [])

put_current_resource(conn, resource, opts \\ [])

put_current_token(conn, token, opts \\ [])

put_session_token(conn, token, opts \\ [])

remember_me(conn, resource, claims \\ %{}, opts \\ [])

remember_me_from_token(conn, token, claims \\ %{}, opts \\ [])

sign_in(conn, resource, claims \\ %{}, opts \\ [])

sign_out(conn, opts \\ [])

Functions

authenticated?(conn, opts \\ [])

clear_remember_me(conn, opts \\ [])

current_claims(conn, opts \\ [])

current_resource(conn, opts \\ [])

current_token(conn, opts \\ [])

implementation()

@spec implementation() :: Back.Users.Guardian

put_current_claims(conn, claims, opts \\ [])

put_current_resource(conn, resource, opts \\ [])

put_current_token(conn, token, opts \\ [])

put_session_token(conn, token, opts \\ [])

remember_me(conn, resource, claims \\ %{}, opts \\ [])

remember_me_from_token(conn, token, claims \\ %{}, opts \\ [])

@spec remember_me_from_token(
  Plug.Conn.t(),
  Guardian.Token.token(),
  Guardian.Token.claims(),
  Guardian.options()
) :: Plug.Conn.t()

sign_in(conn, resource, claims \\ %{}, opts \\ [])

sign_out(conn, opts \\ [])

Back.Users.User

Back.Users.UserRole

Summary

Functions

valid?(value)

values()

Functions

valid?(value)

values()

BackWeb

The entrypoint for defining your web interface, such as controllers, components, channels, and so on.

This can be used in your application as:

use BackWeb, :controller
use BackWeb, :html

The definitions below will be executed for every controller, component, etc, so keep them short and clean, focused on imports, uses and aliases.

The routes are listed in BackWeb.Router

Summary

Functions

__using__(which)

When used, dispatch to the appropriate controller/live_view/etc.

channel()

controller()

router()

static_paths()

verified_routes()

Functions

__using__(which)

(macro)

When used, dispatch to the appropriate controller/live_view/etc.

channel()

controller()

router()

static_paths()

verified_routes()

BackWeb.AuthController

Summary

Functions

login(conn, map)

logout(conn, _)

Functions

login(conn, map)

logout(conn, _)

BackWeb.AuthJSON

Summary

Functions

error(map)

login(map)

login_img(map)

Functions

error(map)

login(map)

login_img(map)

BackWeb.AutomatonCommentsController

Summary

Functions

create(conn, map)

delete(conn, map)

get_by_automaton(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

get_by_automaton(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.AutomatonCommentsJSON

Summary

Functions

index(map)

Renders a list of automaton_comment.

show(map)

Renders a single automaton_comments.

Functions

index(map)

Renders a list of automaton_comment.

show(map)

Renders a single automaton_comments.

BackWeb.AutomatonController

Summary

Functions

create(conn, map)

create_image(conn, map)

delete(conn, map)

get_recents(conn, map)

index(conn, params)

index_img(conn, params)

show(conn, map)

show_img(conn, map)

update(conn, map)

Functions

create(conn, map)

create_image(conn, map)

delete(conn, map)

get_recents(conn, map)

index(conn, params)

index_img(conn, params)

show(conn, map)

show_img(conn, map)

update(conn, map)

BackWeb.AutomatonJSON

Summary

Functions

index(map)

Renders a list of automaton.

index_date(map)

Renders a list of automaton.

index_image(map)

show(map)

Renders a single automaton.

show_date(map)

Renders a single automaton.

show_images(map)

Render a automaton with the profile picture when needed

Functions

index(map)

Renders a list of automaton.

index_date(map)

Renders a list of automaton.

index_image(map)

show(map)

Renders a single automaton.

show_date(map)

Renders a single automaton.

show_images(map)

Render a automaton with the profile picture when needed

BackWeb.AutomatonTagController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.AutomatonTagJSON

Summary

Functions

index(map)

Renders a list of automaton_tag.

show(map)

Renders a single automaton_tag.

Functions

index(map)

Renders a list of automaton_tag.

show(map)

Renders a single automaton_tag.

BackWeb.BlockedController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.BlockedJSON

Summary

Functions

index(map)

Renders a list of blocked.

show(map)

Renders a single blocked.

Functions

index(map)

Renders a list of blocked.

show(map)

Renders a single blocked.

BackWeb.ChangesetJSON

Summary

Functions

error(map)

Renders changeset errors.

Functions

error(map)

Renders changeset errors.

BackWeb.CommentController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.CommentJSON

Summary

Functions

index(map)

Renders a list of comment.

show(map)

Renders a single comment.

Functions

index(map)

Renders a list of comment.

show(map)

Renders a single comment.

BackWeb.Endpoint

Summary

Functions

broadcast(topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast/3.

broadcast!(topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast!/3.

broadcast_from(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast_from/4.

broadcast_from!(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast_from!/4.

call(conn, opts)

Callback implementation for Plug.call/2.

child_spec(opts)

Returns the child specification to start the endpoint under a supervision tree.

config(key, default \\ nil)

Returns the endpoint configuration for key

config_change(changed, removed)

Reloads the configuration given the application environment changes.

host()

Returns the host for the given endpoint.

init(opts)

Callback implementation for Plug.init/1.

local_broadcast(topic, event, msg)

Callback implementation for Phoenix.Endpoint.local_broadcast/3.

local_broadcast_from(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.local_broadcast_from/4.

path(path)

Generates the path information when routing to this endpoint.

script_name()

Generates the script name.

server_info(scheme)

Returns the address and port that the server is running on

start_link(opts \\ [])

Starts the endpoint supervision tree.

static_integrity(path)

Generates a base64-encoded cryptographic hash (sha512) to a static file in priv/static. Meant to be used for Subresource Integrity with CDNs.

static_lookup(path)

Returns a two item tuple with the first item being the static_path and the second item being the static_integrity.

static_path(path)

Generates a route to a static file in priv/static.

static_url()

Generates the static URL without any path information.

struct_url()

Generates the endpoint base URL but as a URI struct.

subscribe(topic, opts \\ [])

Callback implementation for Phoenix.Endpoint.subscribe/2.

unsubscribe(topic)

Callback implementation for Phoenix.Endpoint.unsubscribe/1.

url()

Generates the endpoint base URL without any path information.

Functions

broadcast(topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast/3.

broadcast!(topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast!/3.

broadcast_from(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast_from/4.

broadcast_from!(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.broadcast_from!/4.

call(conn, opts)

Callback implementation for Plug.call/2.

child_spec(opts)

Returns the child specification to start the endpoint under a supervision tree.

config(key, default \\ nil)

Returns the endpoint configuration for key

Returns default if the key does not exist.

config_change(changed, removed)

Reloads the configuration given the application environment changes.

host()

Returns the host for the given endpoint.

init(opts)

Callback implementation for Plug.init/1.

local_broadcast(topic, event, msg)

Callback implementation for Phoenix.Endpoint.local_broadcast/3.

local_broadcast_from(from, topic, event, msg)

Callback implementation for Phoenix.Endpoint.local_broadcast_from/4.

path(path)

Generates the path information when routing to this endpoint.

script_name()

Generates the script name.

server_info(scheme)

Returns the address and port that the server is running on

start_link(opts \\ [])

Starts the endpoint supervision tree.

All other options are merged into the endpoint configuration.

static_integrity(path)

Generates a base64-encoded cryptographic hash (sha512) to a static file in priv/static. Meant to be used for Subresource Integrity with CDNs.

static_lookup(path)

Returns a two item tuple with the first item being the static_path and the second item being the static_integrity.

static_path(path)

Generates a route to a static file in priv/static.

static_url()

Generates the static URL without any path information.

It uses the configuration under :static_url to generate such. It falls back to :url if :static_url is not set.

struct_url()

Generates the endpoint base URL but as a URI struct.

It uses the configuration under :url to generate such. Useful for manipulating the URL data and passing it to URL helpers.

subscribe(topic, opts \\ [])

Callback implementation for Phoenix.Endpoint.subscribe/2.

unsubscribe(topic)

Callback implementation for Phoenix.Endpoint.unsubscribe/1.

url()

Generates the endpoint base URL without any path information.

It uses the configuration under :url to generate such.

BackWeb.ErrorJSON

This module is invoked by your endpoint in case of errors on JSON requests.

See config/config.exs.

Summary

Functions

render(template, assigns)

Functions

render(template, assigns)

BackWeb.FallbackController

Translates controller action results into valid Plug.Conn responses.

See Phoenix.Controller.action_fallback/1 for more details.

BackWeb.FavoriteController

Summary

Functions

create(conn, map)

delete(conn, map)

get_by_user(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

get_by_user(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.FavoriteJSON

Summary

Functions

index(map)

Renders a list of favorite.

show(map)

Renders a single favorite.

Functions

index(map)

Renders a list of favorite.

show(map)

Renders a single favorite.

BackWeb.Gettext

A module providing Internationalization with a gettext-based API.

By using Gettext, your module gains a set of macros for translations, for example:

import BackWeb.Gettext

# Simple translation
gettext("Here is the string to translate")

# Plural translation
ngettext("Here is the string to translate",
         "Here are the strings to translate",
         3)

# Domain-based translation
dgettext("errors", "Here is the error message to translate")

See the Gettext Docs for detailed usage.

Summary

Functions

handle_missing_bindings(exception, incomplete)

Callback implementation for Gettext.Backend.handle_missing_bindings/2.

handle_missing_plural_translation(locale, domain, msgctxt, msgid, msgid_plural, n, bindings)

Callback implementation for Gettext.Backend.handle_missing_plural_translation/7.

handle_missing_translation(locale, domain, msgctxt, msgid, bindings)

Callback implementation for Gettext.Backend.handle_missing_translation/5.

Functions

handle_missing_bindings(exception, incomplete)

Callback implementation for Gettext.Backend.handle_missing_bindings/2.

handle_missing_plural_translation(locale, domain, msgctxt, msgid, msgid_plural, n, bindings)

Callback implementation for Gettext.Backend.handle_missing_plural_translation/7.

handle_missing_translation(locale, domain, msgctxt, msgid, bindings)

Callback implementation for Gettext.Backend.handle_missing_translation/5.

BackWeb.PostActionsController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.PostActionsJSON

Summary

Functions

index(map)

Renders a list of posts_actions.

show(map)

Renders a single post_actions.

Functions

index(map)

Renders a list of posts_actions.

show(map)

Renders a single post_actions.

BackWeb.PostController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.PostJSON

Summary

Functions

index(map)

Renders a list of post.

show(map)

Renders a single post.

Functions

index(map)

Renders a list of post.

show(map)

Renders a single post.

BackWeb.Router

Hosts all routes

Summary

Functions

__live_dashboard_prefix__()

api(conn, _)

auth(conn, _)

call(conn, opts)

Callback invoked by Plug on every request.

init(opts)

Callback required by Plug that initializes the router for serving web requests.

Functions

__live_dashboard_prefix__()

  POST    /api/user                    BackWeb.UserController :create
  POST    /api/user/pictures           BackWeb.UserController :create_pic
  POST    /api/login                   BackWeb.AuthController :login
  GET     /api/automaton               BackWeb.AutomatonController :index
  GET     /api/automaton/images        BackWeb.AutomatonController :index_img
  GET     /api/automaton/images/:id    BackWeb.AutomatonController :show_img
  GET     /api/user/pictures           BackWeb.UserController :index_pic
  GET     /api/user/pictures/:user_id  BackWeb.UserController :show_pic
  GET     /api/user                    BackWeb.UserController :index
  GET     /api/user/:id                BackWeb.UserController :show
  PATCH   /api/user/:id                BackWeb.UserController :update
  PUT     /api/user/:id                BackWeb.UserController :update
  DELETE  /api/user/:id                BackWeb.UserController :delete
  GET     /api/post                    BackWeb.PostController :index
  GET     /api/post/:id                BackWeb.PostController :show
  POST    /api/post                    BackWeb.PostController :create
  PATCH   /api/post/:id                BackWeb.PostController :update
  PUT     /api/post/:id                BackWeb.PostController :update
  DELETE  /api/post/:id                BackWeb.PostController :delete
  GET     /api/automaton/:id           BackWeb.AutomatonController :show
  POST    /api/automaton               BackWeb.AutomatonController :create
  PATCH   /api/automaton/:id           BackWeb.AutomatonController :update
  PUT     /api/automaton/:id           BackWeb.AutomatonController :update
  DELETE  /api/automaton/:id           BackWeb.AutomatonController :delete
  POST    /api/automaton/image         BackWeb.AutomatonController :create_image
  GET     /api/comment                 BackWeb.CommentController :index
  GET     /api/comment/:id             BackWeb.CommentController :show
  POST    /api/comment                 BackWeb.CommentController :create
  PATCH   /api/comment/:id             BackWeb.CommentController :update
  PUT     /api/comment/:id             BackWeb.CommentController :update
  DELETE  /api/comment/:id             BackWeb.CommentController :delete
  GET     /api/blocked                 BackWeb.BlockedController :index
  GET     /api/blocked/:id             BackWeb.BlockedController :show
  POST    /api/blocked                 BackWeb.BlockedController :create
  PATCH   /api/blocked/:id             BackWeb.BlockedController :update
  PUT     /api/blocked/:id             BackWeb.BlockedController :update
  DELETE  /api/blocked/:id             BackWeb.BlockedController :delete
  GET     /api/favorite                BackWeb.FavoriteController :index
  GET     /api/favorite/:id            BackWeb.FavoriteController :show
  POST    /api/favorite                BackWeb.FavoriteController :create
  PATCH   /api/favorite/:id            BackWeb.FavoriteController :update
  PUT     /api/favorite/:id            BackWeb.FavoriteController :update
  DELETE  /api/favorite/:id            BackWeb.FavoriteController :delete
  GET     /api/posts_actions           BackWeb.PostActionsController :index
  GET     /api/posts_actions/:id       BackWeb.PostActionsController :show
  POST    /api/posts_actions           BackWeb.PostActionsController :create
  PATCH   /api/posts_actions/:id       BackWeb.PostActionsController :update
  PUT     /api/posts_actions/:id       BackWeb.PostActionsController :update
  DELETE  /api/posts_actions/:id       BackWeb.PostActionsController :delete
  GET     /api/automaton_comment       BackWeb.AutomatonCommentsController :index
  GET     /api/automaton_comment/:id   BackWeb.AutomatonCommentsController :show
  POST    /api/automaton_comment       BackWeb.AutomatonCommentsController :create
  PATCH   /api/automaton_comment/:id   BackWeb.AutomatonCommentsController :update
  PUT     /api/automaton_comment/:id   BackWeb.AutomatonCommentsController :update
  DELETE  /api/automaton_comment/:id   BackWeb.AutomatonCommentsController :delete
  GET     /dev/dashboard/css-:md5      Phoenix.LiveDashboard.Assets :css
  GET     /dev/dashboard/js-:md5       Phoenix.LiveDashboard.Assets :js
  GET     /dev/dashboard               Phoenix.LiveDashboard.PageLive :home
  GET     /dev/dashboard/:page         Phoenix.LiveDashboard.PageLive :page
  GET     /dev/dashboard/:node/:page   Phoenix.LiveDashboard.PageLive :page
  *       /dev/mailbox                 Plug.Swoosh.MailboxPreview []
  WS      /live/websocket              Phoenix.LiveView.Socket
  GET     /live/longpoll               Phoenix.LiveView.Socket
  POST    /live/longpoll               Phoenix.LiveView.Socket

api(conn, _)

auth(conn, _)

call(conn, opts)

Callback invoked by Plug on every request.

init(opts)

Callback required by Plug that initializes the router for serving web requests.

BackWeb.TagController

Summary

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

Functions

create(conn, map)

delete(conn, map)

index(conn, params)

show(conn, map)

update(conn, map)

BackWeb.TagJSON

Summary

Functions

index(map)

Renders a list of tag.

show(map)

Renders a single tag.

Functions

index(map)

Renders a list of tag.

show(map)

Renders a single tag.

BackWeb.Telemetry

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

metrics()

start_link(arg)

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

metrics()

start_link(arg)

BackWeb.UserController

Summary

Functions

create(conn, map)

create_pic(conn, map)

delete(conn, map)

index(conn, params)

index_pic(conn, params)

show(conn, map)

show_pic(conn, map)

update(conn, map)

update_pic(conn, map)

Functions

create(conn, map)

create_pic(conn, map)

delete(conn, map)

index(conn, params)

index_pic(conn, params)

show(conn, map)

show_pic(conn, map)

update(conn, map)

update_pic(conn, map)

BackWeb.UserJSON

Summary

Functions

index(map)

Renders a list of user.

index_picture(map)

show(map)

Renders a single user.

show_new(map)

show_picture(map)

Render a user with the profile picture when needed

Functions

index(map)

Renders a list of user.

index_picture(map)

show(map)

Renders a single user.

show_new(map)

show_picture(map)

Render a user with the profile picture when needed

mix generate.routes_docs

Summary

Functions

run(_)

Callback implementation for Mix.Task.run/1.

Functions

run(_)

Callback implementation for Mix.Task.run/1.