philomena/lib/philomena_web/controllers/api/json
SomewhatDamaged ae5bfe14e4 Add /forums API Endpoints (#14)
* Adding routes for /forums

Adding routes for new /forums endpoints

* New API Routes

`/forum`
`/forum/:forum_id`

* Add New API Routes

`/forums/:forum_id/topics/:topic_id/`
`/forums/:forum_id/topics/:topic_id/:post_id`

* Adds New API Routes

`/forums/:forum_id/topics`
`/forums/:forum_id/topics/:topic_id`

* Forum JSON formatter

* Updated

Correctly filters out things that should not be shown.

* Added topic JSON filter

* Added correct pagination

* Spacing and neatened

* Cleaned up

Consolidated queries and neatened up spacing.
Fixed name

* Removed unneeded aliases

* Cleaned up

Consolidated queries
Fixed spacing
Removed unneeded aliases

* Cleaned up

Spacing

* Cleaned up

spacing

* Depluralized

* Cleaned up

Removed space

* Removed extra spaces

* Removed extra spaces

* Removed extra spaces

* Removed preloads

* Cleaned up

Grouped clauses

* Consolodated further

* Cleaned up preloads

* Cleaned up

Preloads
consolidated clauses
grouped clauses

* Cleaned up

removed `id`
`locked`

* Removed topic_id

Not useful since the API client should already know it.

* More consolodation of terms

* Add total post count

* Removed unneeded variable

* Last cleanup, I swear.
2020-01-02 17:47:12 -05:00
..
search include intensity data in image api response 2019-12-30 09:18:38 -05:00
comment_controller.ex Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
forums_controller.ex Add /forums API Endpoints (#14) 2020-01-02 17:47:12 -05:00
image_controller.ex add deletion/duplicate handling to api 2019-12-31 00:10:50 -05:00
oembed_controller.ex conn no longer necessary 2019-12-05 17:57:17 -05:00
posts_controller.ex Add /forums API Endpoints (#14) 2020-01-02 17:47:12 -05:00
tag_controller.ex add parameter recoder to api tag controller 2019-12-31 23:22:35 -05:00
topics_controller.ex Add /forums API Endpoints (#14) 2020-01-02 17:47:12 -05:00