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.User
s profile.
Discover the CPub.User
s profile from authenticated request.
Link to this section Functions
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)
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)
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.User
s profile.
Specs
whoami(Plug.Conn.t(), map()) :: Plug.Conn.t()
Discover the CPub.User
s profile from authenticated request.