CPub.Web.UserController (CPub v0.3.0) View Source

Link to this section Summary

Functions

Returns a RDF.Graph containing a list of objects in a ldp:Container and in an as:Collection.

GET from your inbox to read your latest messages (client-to-server)

GET from someone's outbox to see what messages they've posted (or at least the ones you're authorized to see) (client-to-server and/or server-to-server)

POST to your outbox to send messages to the world (client-to-server)

Show the CPub.Users profile.

Discover the CPub.Users profile from authenticated request.

Link to this section Functions

Link to this function

as_container(objects, id)

View Source

Specs

as_container(MapSet.t(), RDF.IRI.t()) :: RDF.Graph.t()

Returns a RDF.Graph containing a list of objects in a ldp:Container and in an as:Collection.

Specs

get_inbox(Plug.Conn.t(), map()) :: Plug.Conn.t()

GET from your inbox to read your latest messages (client-to-server)

Link to this function

get_outbox(conn, params)

View Source

Specs

get_outbox(Plug.Conn.t(), map()) :: Plug.Conn.t()

GET from someone's outbox to see what messages they've posted (or at least the ones you're authorized to see) (client-to-server and/or server-to-server)

Link to this function

post_to_outbox(conn, params)

View Source

Specs

post_to_outbox(Plug.Conn.t(), map()) :: Plug.Conn.t()

POST to your outbox to send messages to the world (client-to-server)

Specs

show(Plug.Conn.t(), map()) :: Plug.Conn.t()

Show the CPub.Users profile.

Specs

whoami(Plug.Conn.t(), map()) :: Plug.Conn.t()

Discover the CPub.Users profile from authenticated request.