# |
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 |
# |
Jul 5th 2018, 16:18 |
james.phillips |
im dont mind being wrong just worried ive wasted time |
# |
Jul 5th 2018, 16:18 |
bravo-kernel |
updating is not too difficult |
# |
Jul 5th 2018, 16:18 |
bravo-kernel |
@james.phillips not saying you are wrong, just that I recall issues |
# |
Jul 5th 2018, 16:18 |
james.phillips |
im using the alt3 swagger...I will need to check if its too old |
# |
Jul 5th 2018, 16:17 |
james.phillips |
think im missing the point of what doesnt work....yes I have to put the swagger docs in my code but im fine with that. |
# |
Jul 5th 2018, 16:17 |
bravo-kernel |
the swagger-ui inside cakephp-swagger has not been updated for ages either so there is most likely a better/updated version out there |
# |
Jul 5th 2018, 16:15 |
bravo-kernel |
but hey, @james.phillips if you do have a fully working example please do share :dancer: |
# |
Jul 5th 2018, 16:15 |
bravo-kernel |
all other things are swagger-ui issues, sending the correct headers, authentication, hooking into the query params, etc, |
# |
Jul 5th 2018, 16:15 |
bravo-kernel |
:heavy_check_mark: |
# |
Jul 5th 2018, 16:14 |
josbeir |
me neither, years |
# |
Jul 5th 2018, 16:14 |
bravo-kernel |
relationships |
# |
Jul 5th 2018, 16:14 |
bravo-kernel |
I have not used it for ages but IIRC the schemas are/were the pain point |
# |
Jul 5th 2018, 16:14 |
josbeir |
indeed |
# |
Jul 5th 2018, 16:14 |
bravo-kernel |
annotations are just that, hardcoded swagger |
# |
Jul 5th 2018, 16:13 |
josbeir |
as long as you have defined the annotations for each of your api methods swagger should work just fin |
# |
Jul 5th 2018, 16:06 |
james.phillips |
@bravo-kernel why not? I have JSON API running and swagger aswell....I currently only have one issue (that i know of) and thats the try it now button not working with path parameters...it works with query ones.. ie page etc |
# |
Jul 5th 2018, 16:04 |
james.phillips |
@bravo-kernel nope! it is working mostly?! |
# |
Jul 5th 2018, 16:02 |
bravo-kernel |
@james.phillips you know swagger won’t work with JSON API right? |
# |
Jul 5th 2018, 15:45 |
josbeir |
@dwms what is the field type of your sql table |
# |
Jul 5th 2018, 15:37 |
dwms |
i use crud-json-api |
# |
Jul 5th 2018, 15:37 |
dwms |
continue returning 2018-01-01T00:00:00+00:00 |
# |
Jul 5th 2018, 15:37 |
dwms |
@Diego_ (IRC) not work |
# |
Jul 5th 2018, 15:33 |
Diego_ |
@dwms https://thepasteb.in/p/wjhzcKrJANP3xi6 |
# |
Jul 5th 2018, 15:32 |
james.phillips |
sorry meant alt3 |
# |
Jul 5th 2018, 15:32 |
dwms |
cakephp work with 2018-01-01T00:00:00+00:00 |
# |
Jul 5th 2018, 15:32 |
james.phillips |
Anyone use al3 swagger? |
# |
Jul 5th 2018, 15:32 |
dwms |
interface work with 2017-12-27T00:00:00.000Z |
# |
Jul 5th 2018, 15:32 |
dwms |
help me please |
# |
Jul 5th 2018, 15:32 |
dwms |
kkk |
# |
Jul 5th 2018, 15:32 |
josbeir |
brazzill nananananaaa |
# |
Jul 5th 2018, 15:31 |
josbeir |
:flag-be: :soccer: :flag-br: |
# |
Jul 5th 2018, 15:31 |
dwms |
brazil |
# |
Jul 5th 2018, 15:31 |
dwms |
yes |