Log message #4019144

# At Username Text
# 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
# Apr 21st 2017, 13:37 Neon1024 Hm, I just can’t get it to pass the if()
# Apr 21st 2017, 13:37 birdy247 cake makes this super easy :slightly_smiling_face:
# Apr 21st 2017, 13:37 birdy247 I am wanting to create an API for my app
# Apr 21st 2017, 13:37 birdy247 Hi
# Apr 21st 2017, 13:35 juniorionut don't worry, will do, thanks!
# Apr 21st 2017, 13:34 admad All i can tell you is read GH docs, i don't have time right now to walk you through the process
# Apr 21st 2017, 13:34 juniorionut i usually make new branches for changes
# Apr 21st 2017, 13:34 juniorionut so far no, relatively new to GH, read some doc , tried to use a fork but it game the message that everytrhing is merged
# Apr 21st 2017, 13:34 admad i suggest you read GH docs on how to create a PR.
# Apr 21st 2017, 13:33 admad two different branch names are not necessary, the master of your fork can be compared with master of main repo. Although its' good practice to always make a new branch for changes
# Apr 21st 2017, 13:32 admad have you opened pull requests on GH before? :slightly_smiling_face:
# Apr 21st 2017, 13:32 juniorionut You’ll need to use two different branch names to get a valid comparison.
# Apr 21st 2017, 13:31 admad huh?