Update API Url

Laravel

Open: lib/modules/services/platform/lara/lara.dart

class Lara extends PlatformBase {
  static const String baseUrlImage = "https://yourdomain/uploads/";

  Lara(): super(){
    baseUrl = "https://yourdomain/api/app";
    type =PlatformType.lara;
  }
}

baseUrlImage: base url to get image

baseUrl: base url to get data

WordPress

Open: lib/modules/services/platform/wp/wp.dart

class WP extends PlatformBase {
  WP() : super() {
    baseUrl = "https://yourdomain/wp-json/wp/v2/";
  }
}

baseUrl: base url to get data

For more REST API Handbook:

https://developer.wordpress.org/rest-api/reference/

Last updated