Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add statuses api #23 #114

Merged
merged 7 commits into from
Feb 2, 2023
Merged

feat: add statuses api #23 #114

merged 7 commits into from
Feb 2, 2023

Conversation

Kraigo
Copy link
Contributor

@Kraigo Kraigo commented Jan 30, 2023

1. Description

Implemented statuses methods:

  • GET /api/v1/statuses/:id
  • GET /api/v1/statuses/:id/context
  • GET /api/v1/statuses/:id/reblogged_by
  • GET /api/v1/statuses/:id/favourited_by
  • POST /api/v1/statuses/:id/favourite
  • POST /api/v1/statuses/:id/unfavourite
  • POST /api/v1/statuses/:id/reblog
  • POST /api/v1/statuses/:id/unreblog
  • POST /api/v1/statuses/:id/bookmark
  • POST /api/v1/statuses/:id/unbookmark
  • POST /api/v1/statuses/:id/mute
  • POST /api/v1/statuses/:id/unmute
  • POST /api/v1/statuses/:id/pin
  • POST /api/v1/statuses/:id/unpin

1.1. Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

1.2. Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

1.3. Related Issues

#23

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! :)

@Kraigo Kraigo changed the title feat: add getStatus and getStatusContext methods feat: add getStatus and getStatusContext methods (issue #23) Jan 30, 2023
@myConsciousness
Copy link
Member

Hi @Kraigo ,

LGTM!

Thanks for your contribution :) I will check this PR as soon as possible!

@Kraigo Kraigo changed the title feat: add getStatus and getStatusContext methods (issue #23) feat: add statuses api #23 Jan 31, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #114 (35bcfdc) into main (7b6ea6c) will increase coverage by 1.74%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   70.35%   72.10%   +1.74%     
==========================================
  Files          97       98       +1     
  Lines         958     1018      +60     
==========================================
+ Hits          674      734      +60     
  Misses        284      284              
Impacted Files Coverage Δ
lib/src/service/entities/status_context.dart 100.00% <100.00%> (ø)
...b/src/service/v1/statuses/statuses_v1_service.dart 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@myConsciousness myConsciousness self-assigned this Feb 2, 2023
@bors bors bot merged commit 35bcfdc into mastodon-dart:main Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request service/statuses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants