Log message #4156126

# At Username Text
# Jul 5th 2018, 16:31 bravo-kernel the downsides are fine by me
# Jul 5th 2018, 16:31 bravo-kernel if you ask me crud-json-api is the only route for me for a single reason.... I am able to swap in my frontend for whatever framework whenever I want
# Jul 5th 2018, 16:30 james.phillips I just wanted to add a REST API onto an exising cakephp app and it looked good
# Jul 5th 2018, 16:30 james.phillips if crud-json-api a good thing to be using?
# Jul 5th 2018, 16:30 james.phillips ahh i get you...I think I dont want to expose everything about it all so what i tell it is fine to show other people
# Jul 5th 2018, 16:29 bravo-kernel that's it, it can be done, I just did not have the energy to start
# Jul 5th 2018, 16:29 bravo-kernel tables, entities, actions, perhaps mini-annotatio nfor the description
# Jul 5th 2018, 16:29 james.phillips automatically?
# Jul 5th 2018, 16:28 james.phillips how would it know about @SWG\Post( path="/crm-contacts/", summary="Add a new contact", tags={"Contacts"}, @SWG\Parameter( name="sort", description="Sort results by field", in="query", required=false, type="string", enum={"name", "description"} ),
# Jul 5th 2018, 16:28 bravo-kernel @josbeir nah
# Jul 5th 2018, 16:28 bravo-kernel haha
# Jul 5th 2018, 16:28 bravo-kernel no `application/vnd.api+json` on the pet store either so I just have to believe it
# Jul 5th 2018, 16:28 josbeir btw @bravo-kernel if i knew crud-json-api was going to be such a success i would have kept developing it :)
# Jul 5th 2018, 16:28 bravo-kernel why and how it does JSON API is totally beyond me to be honest. I knew it was good but that good, haha
# Jul 5th 2018, 16:27 bravo-kernel but I never got to that point
# Jul 5th 2018, 16:27 bravo-kernel and... that should not be neccessary either, it can be done automatically
# Jul 5th 2018, 16:27 james.phillips u r clever
# Jul 5th 2018, 16:27 bravo-kernel I know, i made the plugin
# Jul 5th 2018, 16:27 james.phillips its not realy automatic cos i have to write all the swg comments
# Jul 5th 2018, 16:27 bravo-kernel the fact that it does/generates JSON API based on the comments is a 100% surprise to me
# Jul 5th 2018, 16:26 james.phillips in my brain the api is working and I just put swg comments in the right places and the swagger ui tells me lovely things about my models and GET< POST based on the my sqg comments
# Jul 5th 2018, 16:25 bravo-kernel :dancer:
# Jul 5th 2018, 16:25 bravo-kernel do explain, my brain hasn't plopped yet
# Jul 5th 2018, 16:25 josbeir serious as cancer bro
# Jul 5th 2018, 16:24 bravo-kernel snap for real?
# Jul 5th 2018, 16:24 james.phillips lol im confused.
# Jul 5th 2018, 16:24 josbeir :)
# Jul 5th 2018, 16:24 josbeir ooooo snap
# Jul 5th 2018, 16:24 bravo-kernel that's totally unexpected to me but... looks prety cool
# Jul 5th 2018, 16:23 james.phillips thats an example response
# Jul 5th 2018, 16:23 slackebot4 "links": { "self": "/api/v1/crm-contacts/1" } }, { "type": "crm-contacts", "id": "2", "attributes": { "lastname": "Booker" }, "links": { "self": "/api/v1/crm-contacts/2" } } ] }
# Jul 5th 2018, 16:23 james.phillips { "meta": { "record_count": 111440, "page_count": 55720, "page_limit": null }, "links": { "self": "/api/v1/crm-contacts?page=1", "first": "/api/v1/crm-contacts?page=1", "last": "/api/v1/crm-contacts?page=55720", "prev": null, "next": "/api/v1/crm-contacts?page=2" }, "data": [ { "type": "crm-contacts", "id": "1", "attributes": { "lastname": "Caldock" },
# Jul 5th 2018, 16:23 james.phillips I have application/vnd.api+json in the reponse type dropdown
# Jul 5th 2018, 16:22 bravo-kernel If I am wrong.... please do let me know, I still need auto-documenting for crud-json-api myself
# Jul 5th 2018, 16:22 bravo-kernel and IMO that would make it unusable or at least not up to my standards as what I would like to present to my users
# Jul 5th 2018, 16:21 bravo-kernel I am most sure it is not (yet/easily) possible to get the correct JSON API response there no matter the annotations
# Jul 5th 2018, 16:21 bravo-kernel File uploaded https://cakesf.slack.com/files/U157AT2ET/FBKM6P8DB/image.png / https://slack-files.com/T053DPNCM-FBKM6P8DB-77841846e4
# Jul 5th 2018, 16:21 bravo-kernel before we move on... I checked the pet store just to make sure I am not tripping and what I mean is the following:
# Jul 5th 2018, 16:20 josbeir https://github.com/alt3/cakephp-swagger/tree/master/webroot => https://github.com/swagger-api/swagger-ui dist stuff
# Jul 5th 2018, 16:19 james.phillips in vendor alt cakephp-swagger?
# Jul 5th 2018, 16:18 bravo-kernel replace the webroot files with current version and make sure the cake-additions are included