AuthWeb.ApiController (auth v1.6.6)

ApiController includes all functions for our RESTfull API in one place.

Link to this section Summary

Functions

approles/2 Returns the (JSON) List of Roles for a given App based on apikey.client_id Sample output: https://github.com/dwyl/auth/issues/120#issuecomment-695354317

end_session/2 logs the person out of their session.

personroles/2 Returns the (JSON) List of Roles for a given person (and App) e.g: /personroles/:person_id/:client_id Sample output: https://github.com/dwyl/auth/issues/121#issuecomment-695360870

Link to this section Functions

Link to this function

approles(conn, map)

approles/2 Returns the (JSON) List of Roles for a given App based on apikey.client_id Sample output: https://github.com/dwyl/auth/issues/120#issuecomment-695354317

Link to this function

end_session(conn, map)

end_session/2 logs the person out of their session.

Link to this function

personroles(conn, map)

personroles/2 Returns the (JSON) List of Roles for a given person (and App) e.g: /personroles/:person_id/:client_id Sample output: https://github.com/dwyl/auth/issues/121#issuecomment-695360870