\apibvw\ControllerUsers

User controller to handle CRUD actions over users in database using HTTP verbs.

For a clearer documentation of the API, client-oriented, please visit http://docs.biovoiceapi.apiary.io/

The base URL for this actions is v1/users

Summary

Methods
Properties
Constants
index()
show()
store()
destroy()
missingMethod()
No public properties found
No constants found
setupLayout()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

index()

index()

Returns a JSON with every user in the database.

URL: GET v1/users

show()

show(string $username)

Returns JSON ith de data of the user identified by $username

URL: GET v1/users/{username}

Parameters

string $username

store()

store()

Registers a user in the database

URL: POST v1/users

destroy()

destroy(string $username)

Deletes the user identified by $username from de database

Parameters

string $username

missingMethod()

missingMethod(\apibvw\Controller\unknown $paramenters)

Makes every other HTTP request to this base address return a 405 response

Parameters

\apibvw\Controller\unknown $paramenters

setupLayout()

setupLayout() : void

Setup the layout used by the controller.