i´m a bit confused about using optional parameters and phpdocs. I got the following @url statement:
@url GET /pruefvorschrift/:typs
now want to set :typs as optional so i do
function getpruefvorschrift ($typs=null) {...
this isn´t working, value for :typs is never available in $typs. If i change the above @ url rout to use other word e.g. :id it works?
I don´t understand it could anyone help?
For completeness: I have many functions in this file
get /device.json/{id}
get /device/pruefvorschrift/:typs.json
get /device/serial.json/{serial}
get /device/:id/merkmale.json
Hope one could help,
thx Inge