dhmgroup / dart-wp

A WordPress API client for dart with support for WooCommerce and custom namespaces.
https://pub.dev/packages/wordpress_api
BSD 3-Clause "New" or "Revised" License
79 stars 28 forks source link

Can't get data from WP API if endpoint contains forward slash (/) #4

Closed jkclaudio20 closed 4 years ago

jkclaudio20 commented 5 years ago

This code final posts = (await wordpress.getAsync('posts'))['data']; works fine.

But if you add a forward slash to the endpoint, flutter throws an exception: Invalid argument(s): The source must not be null Sample code: final posts = (await wordpress.getAsync('posts/1'))['data'];

theeomm commented 5 years ago

Thanks for reporting the issue. I will check the problem and provide the necessary update. Feel free to PR if you find a solution around it

theeomm commented 4 years ago

This issue has been fixed in the latest update v0.1.3+1