There was an error while loading. Please reload this page.
1 parent a5f6ba9 commit 30e6362Copy full SHA for 30e6362
1 file changed
forms-bridge/addons/financoop/class-financoop-addon.php
@@ -69,6 +69,22 @@ public function ping( $backend ) {
69
return true;
70
}
71
72
+ /**
73
+ * Performs an introspection of the backend API and returns a list of available endpoints.
74
+ *
75
+ * @param string $backend Target backend name.
76
+ * @param string|null $method HTTP method.
77
78
+ * @return array|WP_Error
79
+ */
80
+ public function get_endpoints( $backend, $method = null ) {
81
+ return array(
82
+ '/api/campaign/{campaign_id}/subscription_request',
83
+ '/api/campaign/{campaign_id}/donation_request',
84
+ '/api/campaign/{campaign_id}/loan_request',
85
+ );
86
+ }
87
+
88
/**
89
* Performs an introspection of the backend endpoint and returns API fields
90
* and accepted content type.
0 commit comments