xiaohutai / jsonapi

[Bolt Extension] JSON API for Bolt CMS
https://market.bolt.cm/view/bolt/jsonapi
MIT License
55 stars 18 forks source link

WIP V3 Extension Update #15

Closed Raistlfiren closed 8 years ago

Raistlfiren commented 8 years ago

This is about completed. There are a few things to fix, add, and remove.

xiaohutai commented 8 years ago

Hi @Raistlfiren,

Awesome stuff.

Is this for Bolt 3? If so, then I might make:

I've merged the other pull request with a few fixes, do you think you can rebase that or do we need to try and fix some merge conflicts?

Raistlfiren commented 8 years ago

@xiaohutai

This is for Bolt 3. Sorry for not clarifying. A summary of what I have done is listed below -

A few things to do are

xiaohutai commented 8 years ago

Hello @Raistlfiren ,

I went ahead and merged the other pull request (Bolt 2.2 version). Does this pull request need to be applied on top of that, or should I have branched it off before that pull request #16 ?

Thanks again for you hard work!

Raistlfiren commented 8 years ago

@xiaohutai - OK, I think this is ready for V3 now. There are still a few more tasks that would be nice to get completed like testing, but that can be done over time. I did notice an issue with the total results being returned when running COUNT(*). I am looking into the issue. I think it has to do with excluding groupBy in the query.

This should also resolve some of the issues as well like #14 - all routes now use the JSONAPI parameters, #11 - I used hostUrl for the baseUrl and it carries the port # with it, and #8 - checks datetime types to see if they are null before trying to apply a format to the object.