Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds on #114 and introduces
WpRequestBuilder
as a replacement forWpApiHelper
. The usage becomes:I was initially going to use the
WpApi
name as a general encapsulation, but while updating the Swift implementation, I realized it'd create a clash. Also, I thinkWpRequestBuilder
is a more suitable name if we want to just keep it for request building. I still don't like theWp
prefix, but for now, this is consistent with rest of the naming.Note that it's using
Wp
instead ofWP
as the prefix, because the bindings are generated with this prefix and the Rust layer will be updated to use it, so it's consistent everywhere. I didn't want to useWP
just to change it in a later PR.I've also updated the
Current
suffix for users withMe
. This is consistent with the API endpoint and should make it easier to look up documentation if it's needed. I should have gone with this from the start and only didn't do so because I felt weird usingMe
.To Test
make test-server && make dump-mysql && make backup-wp-content-plugins
cargo test --test '*' -- --nocapture --test-threads 1
cd native/kotlin && ./gradlew :api:kotlin:integrationTest cAT