# |
Apr 21st 2017, 13:49 |
Neon1024 |
I’ve recently had to redo all the json output though |
# |
Apr 21st 2017, 13:49 |
Neon1024 |
So I used the json listener and it works okay |
# |
Apr 21st 2017, 13:49 |
Neon1024 |
Unfortunatly bravo-kernels excellenet jsonapi listener wasn’t done when I started |
# |
Apr 21st 2017, 13:49 |
birdy247 |
Im on this :slightly_smiling_face: |
# |
Apr 21st 2017, 13:48 |
Neon1024 |
Yep |
# |
Apr 21st 2017, 13:47 |
birdy247 |
Neon1024 did you just use crud for your API? |
# |
Apr 21st 2017, 13:47 |
Neon1024 |
birdy247, Not sure it’s recorded |
# |
Apr 21st 2017, 13:45 |
admad |
would have gotten a lot more tickets if it didnt work with config shown in readme |
# |
Apr 21st 2017, 13:45 |
awi |
hi. Is there a datasource for couchbase in cakephp3? |
# |
Apr 21st 2017, 13:45 |
birdy247 |
slide 12 is the ticket :slightly_smiling_face: |
# |
Apr 21st 2017, 13:45 |
admad |
don't think anything has changed in 3.4 to cause problem |
# |
Apr 21st 2017, 13:45 |
birdy247 |
I need to get on crud! |
# |
Apr 21st 2017, 13:45 |
Neon1024 |
inorite! |
# |
Apr 21st 2017, 13:45 |
birdy247 |
Neon1024 thats ace |
# |
Apr 21st 2017, 13:44 |
hmic |
i do have an empty initialize in the controller just calling parent::initialize |
# |
Apr 21st 2017, 13:44 |
admad |
it's supposed to work |
# |
Apr 21st 2017, 13:44 |
admad |
please debug and let me know why it doesn't work :slightly_smiling_face: |
# |
Apr 21st 2017, 13:43 |
hmic |
admad: but it does not work if specified at all. no auth at all is done with it in place! *or* i am doing something terribly wrong |
# |
Apr 21st 2017, 13:42 |
Neon1024 |
birdy247, Perhaps see my Cakefest talk? https://www.slideshare.net/davidyell/how-i-built-web-services-in-cakephp :p </pimp> |
# |
Apr 21st 2017, 13:42 |
birdy247 |
controllers then live in that? |
# |
Apr 21st 2017, 13:42 |
birdy247 |
and V3 is a folder |
# |
Apr 21st 2017, 13:42 |
birdy247 |
Api is a folder |
# |
Apr 21st 2017, 13:42 |
admad |
s/for/from |
# |
Apr 21st 2017, 13:42 |
Neon1024 |
Plus the sneeky side bonus is that you can extend controllers |
# |
Apr 21st 2017, 13:42 |
admad |
@hmic: i showed it as default in readme mainly to avoid tickets for those trying to get auth info in beforeFilter() :slightly_smiling_face: |
# |
Apr 21st 2017, 13:42 |
birdy247 |
So In terms of folder structure |
# |
Apr 21st 2017, 13:41 |
Neon1024 |
10/10 would version again |
# |
Apr 21st 2017, 13:41 |
Neon1024 |
I did, it’s worked great for me :) |
# |
Apr 21st 2017, 13:41 |
birdy247 |
So you used prefix routes? |
# |
Apr 21st 2017, 13:41 |
Neon1024 |
So I can have \App\Controller\Api\V3\ProductsController |
# |
Apr 21st 2017, 13:41 |
Neon1024 |
birdy247, The trick I used was to use /api as a prefix, then have version prefixes under that |
# |
Apr 21st 2017, 13:41 |
birdy247 |
so in cake, how would I handle versions? |
# |
Apr 21st 2017, 13:40 |
technofection |
@hmic I am still stuck :( |
# |
Apr 21st 2017, 13:39 |
birdy247 |
Neon1024 ah yes, thats what I am used to |
# |
Apr 21st 2017, 13:39 |
hmic |
admad: actually i'm not. *but* it is the default config in your readme and for me, with just the app template and copyandpaste it does not require auth on 3.4.5 |
# |
Apr 21st 2017, 13:39 |
Neon1024 |
Usually something like example.com/api/:version/:endpoint |
# |
Apr 21st 2017, 13:39 |
Neon1024 |
Been to http://jsonapi.org ? |
# |
Apr 21st 2017, 13:38 |
birdy247 |
like domain.com/api/view/3.json |
# |
Apr 21st 2017, 13:38 |
birdy247 |
I was thinking of a specific scope |
# |
Apr 21st 2017, 13:38 |
Neon1024 |
Can I have Chronos output an array? |
# |
Apr 21st 2017, 13:37 |
Neon1024 |
Very strange |