Skip to content

Developers: Web Routes

Brandon Jank edited this page Nov 22, 2017 · 1 revision

Web Routes

Here are all the user accessible routes for the project.

Home

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /                          index                   home.index
GET	      /home                      index                   home.index
GET	      /about	                 about                   home.about
GET	      /help	                 help                    home.help

Authentication

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /login                     showLoginForm           auth.login
POST	      /login	                 login
GET	      /logout	                 logout
GET	      /register                  showRegistrationForm    auth.register
POST	      /register                  register
GET           /password/reset/{token}    showResetForm           auth.passwords.reset
POST          /password/reset            reset
POST          /password/email            sendResetLinkEmail      auth.passwords.email

User

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /user                      index                   users.index
GET	      /user/create	         create                  users.create
POST	      /user	                 store                   
GET	      /user/{id}                 show                    users.show
GET	      /user/{id}/edit            edit                    users.edit
PUT/PATCH     /user/{id}                 update                  
DELETE        /user/{id}                 destroy                 
PUT	      /user/{id}/restore         restore                 

Device

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /device                    index                   device.index
GET	      /device/create	         create                  device.create
POST	      /device	                 store                   
GET	      /device/{id}               show                    device.show
GET	      /device/{id}/edit          edit                    device.edit
PUT/PATCH     /device/{id}               update                  
DELETE        /device/{id}               destroy                 
PUT	      /device/{id}/restore       restore                 

Dashboard

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /dashboard                 index                   dashboard.index
GET	      /dev_layout	         dev_layout              dashboard.dev_layout

Activity Log

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /logs                      index                   activitylog.index

Sensor

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /sensor                    index                   sensor.index
GET	      /sensor/create	         create                  sensor.create
POST	      /sensor	                 store                   
GET	      /sensor/{id}               show                    sensor.show
GET	      /sensor/{id}/edit          edit                    sensor.edit
PUT/PATCH     /sensor/{id}               update                  
DELETE        /sensor/{id}               destroy                 

SensorData

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /sensordata                index                   sensordata.index
GET	      /sensordata/create         create                  sensordata.create
POST	      /sensordata	         store                   
GET	      /sensordata/{id}           show                    sensordata.show
GET	      /sensordata/{id}/edit      edit                    sensordata.edit
PUT/PATCH     /sensordata/{id}           update                  
DELETE        /sensordata/{id}           destroy                 

Image

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /image/device/{device_id}  show                    

Location

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /location                  index                   location.index
GET	      /location/create	         create                  location.create
POST	      /location	                 store                   
GET	      /location/{id}             show                    location.show
GET	      /location/{id}/edit        edit                    location.edit
PUT/PATCH     /location/{id}             update                  
DELETE        /location/{id}             destroy                 

Site

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /site                      index                   site.index
GET	      /site/create	         create                  site.create
POST	      /site	                 store                   
GET	      /site/{id}                 show                    site.show
GET	      /site/{id}/edit            edit                    site.edit
PUT/PATCH     /site/{id}                 update                  
DELETE        /site/{id}                 destroy                 

Extras (WIP)

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /unit                      index
GET	      /admin	                 index
GET	      /user-notifications        index

API Routes

Here are all the device accessible routes for the project.

API

TYPE         URL                        METHOD                  VIEW
----------   -------------------------- ----------------------  -------------
GET	      /register                  index                   
GET	      /update                    index                   
GET	      /sensor                    index                   
GET	      /show                      index                   
GET	      /image                     index                   
POST	      /register	                 register                
POST	      /update	                 update                
POST	      /sensor	                 sensor                
POST	      /show/{device}	         show                
POST	      /image	                 image