Lawrence
0ac9852663
[API v1 docs] Followed Tags ( #18952 )
...
* Followed Tags swag docs
* Update spec/requests/api/v1/docs/followed_tags_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add to swagger helper
* minor tweaks
* more cleanup
* syntax change
* name change
* User doesn't have to be an admin
* Update spec/requests/api/v1/docs/followed_tags_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update spec/requests/api/v1/docs/followed_tags_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* update v1 json structure
* Update spec/swagger_helper.rb
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* Update spec/requests/api/v1/docs/followed_tags_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* re-generate swagger file
* Update spec/requests/api/v1/docs/followed_tags_spec.rb
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* regenerated swagger file
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2023-01-23 13:28:36 -06:00
Ridhwana
03bee374d2
[API v1 docs] Followers ( #18965 )
2023-01-20 15:03:39 +02:00
Ridhwana
bf88b1e125
[API v1 docs] Profile Images by Username ( #18951 )
2023-01-13 17:35:47 +02:00
Anna Buianova
7d053471f8
Rubocop fixes in spec/requests ( #18946 )
...
* Rubocop fixes in spec/requests
* Fixed spec/requests/api/v0/articles_spec.rb
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2023-01-12 19:10:16 +03:00
Anna Buianova
a2d26df17b
[API V1 docs] Podcast Episodes ( #18908 )
...
* Podcast episodes api swagger docs (start)
* Podcast Episodes api swagger docs
* Fixed wording
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* Fixed wording
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* Removed commented code
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2023-01-10 15:01:22 +03:00
Joshua Wehner
0e25b1413e
Update DisplayAd API to allow setting tag_list ( #18891 )
2023-01-04 13:59:20 +01:00
Ridhwana
73335f3a56
[API V1 docs] Reading List ( #18888 )
...
* feat: add the docs spec file fro readinglist
* feat: add the api_v1.json file
2022-12-22 13:26:31 +02:00
Fernando Valverde
ef854eac77
v1 articles me + published + unpublished dics ( #18810 )
2022-12-08 10:38:25 -06:00
Joshua Wehner
a06ab31416
DisplayAd API: Write endpoints ( #18736 )
...
* Try a create endpoint
* Try an update endpoint for display_ads
* Try a delete endpoint for display_ads (unpublish)
* Unpublish
* Permit tags as well
* Update docs for DisplayAd tags via API/swagger
2022-12-05 11:12:24 +01:00
Fernando Valverde
99f04b9119
GET /articles/me/all ( #18797 )
2022-12-02 08:28:16 -06:00
Josh Puetz
b4a4d59581
Document a v0 endpoint in v1 ( #18493 )
...
Co-authored-by: Fernando Valverde <fernando@fdo.cr>
2022-12-01 06:39:42 -06:00
Joshua Wehner
7c82d128ff
DisplayAd API: Read endpoints ( #18726 )
...
* DisplayAd API: Read endpoints
* Updated swagger docs for display_ads read endpoints
* Update swagger with type_of
* Remove extraneous comment
* Restrict authentication to strictly api_key
2022-11-21 09:31:01 +01:00
Joshua Wehner
3f26694976
Refactor reaction categories as abstract class collection ( #18540 )
...
* Try a ReactionCategory abstract 'model'
* Use ReactionCategory
* Lookup category, pre-reaction
* Lookup category > constant
* Category can sometimes be nil?
* Try something friendlier for code reloading
* Refactor: extract point calculation out of Reaction
* Reaction Category can have color
* Rename reaction points service to follow convention
* method signature changed as well, calculate -> call
* Fix typo, leading comment, and rename data structures for clarity
2022-11-01 10:50:37 +01:00
Anna Buianova
184ee8039f
Create a note when a users' articles are being unpublished via API ( #18545 )
...
* Moved a comment about soft delete from controller to the service
* Create a note when unpublishing all users' articles via api
* Create a note with the default text when unpublishing all via api, added docs
2022-10-10 16:25:56 +03:00
Joshua Wehner
892ad01264
Restrict Reactions API to admins ( #18424 )
...
* Restrict Reactions API to admins
* Also update API docs spec
* Removed unneeded pundit_user
2022-09-08 17:56:42 +02:00
Joshua Wehner
2ff67bda24
Try an idempotentish reaction create API ( #18377 )
...
* Try an idempotentish reaction create API
* Add tests for create API endpoint
* Try -> ReactionHandler
* Fix existing tests first
* Tests for .toggle; fix broken handle_existing
* Use the Handler
* Tweak http status for reaction create
* Use the category reader
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2022-08-30 16:43:18 +02:00
Joshua Wehner
b6efce21fe
API for Reactions: Create endpoint ( #18355 )
...
* Extract reaction create from controller to service
* Success is having no errors
* Confirm http status successful
* V1 API endpoint for Create Reaction
* Actually reset cache count
* Tweak JSON response
* Reaction create -> toggle
* Try rswagger docs for reaction toggle
2022-08-24 17:02:34 +02:00
Fernando Valverde
808149a424
Remove api_v1 feature flag ( #18213 )
2022-08-23 16:00:08 -04:00
Fernando Valverde
2ad02cf31c
API v1 without api key restriction ( #18340 )
...
* Remove :api_v1 feature flag
* Reworking the auth configs throughout V1 + specs
* Fix remaining v1 specs
* Enhanced inline docs
* deprecation warning update
* Use headers variable for most v1 specs
* Cherry pick spec changes
* Fix specs
* group let! statements - rubocop
* Bring back ||= on api v1 authentication methods
* Bump swagger/v1/api_v1.json
2022-08-19 14:04:41 -06:00
Josh Puetz
74e44aeb61
Documentation for Negative Behavior APIs ( #18187 )
...
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2022-07-28 14:30:32 -05:00
Josh Puetz
5daf869e56
v1 documentation via RSwag ( #17990 )
...
Co-authored-by: Fernando Valverde <fernando@fdo.cr>
Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
2022-07-08 14:37:30 -05:00