8b13889c7a
Adds one entry point for both JSON and MP APIs
...
Removes endpoints folder and moves versions to the root
JSON API folder
2017-05-16 20:56:55 -04:00
398d7d3d80
Moves current API under JSON namespace
2017-05-16 20:56:54 -04:00
f4800dbbae
Removes namescape format enforcement
2017-04-24 20:52:01 -04:00
5fa7930896
Redefines how endpoint namespaces are set
...
Updates error response to terminate connection only on AJAX requests
Optimizes and cleans up code based on code revew comments
2017-04-20 22:34:18 -04:00
6a65ff5e5d
Removes default version
...
Updates all AJAX requests to include api version
Requires namespaces to have version
Clean up code
2017-04-19 23:34:40 -04:00
a9c80c031f
Adds version support to public API
2017-04-19 15:38:16 -04:00
9d358f74dd
Rename a 'method' field in a form widget so it doesn't break the WP interactive customizer [MAILPOET-851]
2017-04-05 18:35:13 +03:00
32097b4512
Test that Premium hooks are executed [PREMIUM-2]
2017-03-21 21:36:36 +03:00
bb80fc0860
Add unit tests for API endpoints injection [PREMIUM-4]
2017-02-22 18:02:58 +03:00
6c7cc5de0d
Implement support for additional endpoints in Free API [PREMIUM-4]
2017-02-22 11:19:35 +03:00
9f7ae122e3
Add missing periods to translation strings
2017-01-30 21:33:59 +02:00
b7ef191641
Remove leading slashes in imports [MAILPOET-764]
2017-01-25 10:22:27 +03:00
202e4b90e1
added unit test for API::checkPermissions
2016-10-21 13:36:41 +02:00
ee89bf0722
refactored API class
2016-10-21 13:36:41 +02:00
0ca5b7a79f
API Security
...
- added APIAccess class to define access levels of API Endpoints (permissions)
- use "mailpoet_token" for all nonce (just as before)
- merged setupPublic/setupAdmin methods in API in order to avoid duplication
- check permission if access level is not all
- fixed ABSPATH check in some classes
2016-10-21 13:36:41 +02:00
5d0ee43921
removed checkToken for admin ajax
2016-10-21 13:36:41 +02:00
cc523a3c0b
ability to specify action for generateToken() method
2016-10-21 13:36:41 +02:00
4402f826c3
fixed issue with namespace AND fixed issue #649
2016-10-06 12:54:04 +02:00
b9745b555a
make sure ABSPATH is defined before using it - fixes issue #648
2016-10-06 12:52:53 +02:00
7fbf84db1f
converted text domain to string instead of constant
2016-09-30 09:58:26 +02:00
42202f676a
updated Env::plugin_name to constant for text domain
2016-09-27 14:54:23 +02:00
ba6198f956
added textdomain to __() calls
2016-09-27 14:53:44 +02:00
ea5c73721b
remove doing_ajax logic from API and created dedicated class for subscription form non ajax submission
2016-09-22 16:24:13 +02:00
6091751a4b
Closes issue 480
2016-09-21 11:54:16 +02:00
1918894c5c
fix status code in API + PHP 5.3 errors on object instantiation
2016-09-12 15:59:30 +02:00
d7bcf1b817
- Updates the way errorResponse class is instantiated
2016-09-10 10:49:20 -04:00
1c6fca7f83
fixed ErrorResponse call in API::setupPublic()
...
- removed empty constructors in updated endpoints
- added missing keys to Error class (unauthorized, forbidden)
2016-08-03 16:04:45 +02:00
2e88d7cce0
Added API/Endpoint abstract class
...
- (re)Added Endpoints folder to both API and Router
- fixed syntax in namespaces
- xhr.responseJSON is returned to the fail()
- fixed Router endpoints (view in browser, cron,...)
2016-08-02 17:08:43 +02:00
ed30d8f639
externalize Success/ErrorResponse classes into their own files
2016-08-01 17:22:23 +02:00
9410d4f10a
Reorganized new API + added legacy API support + new API
...
- Updated Settings Router to new standards
- Updated settings.html to reflect API change with better error handling
- Updated Settings API unit tests
2016-08-01 17:00:32 +02:00
354d249e1d
Moved current Router files to API
...
- updated Unit tests to reflect the change
2016-08-01 17:00:32 +02:00
008fdb94c5
Moved lib/API to lib/Router
...
- renamed lib/API/API.php to lib/Router/Front.php
- updated namespaces in various file to account for namespace change
2016-08-01 17:00:32 +02:00
13589a4660
Merge pull request #552 from mailpoet/newsletter_listing
...
Post notification history listing
2016-07-22 16:20:00 +03:00
5f124659d0
- Fixes PHP static standards error
2016-07-22 08:45:46 -04:00
3e746d1545
fixed API data decoding issue
...
- added missing features from issue #419
- removed isMailPoetPage() as the logic was flawed
2016-07-21 15:10:25 +02:00
cef9f1dcf8
- Updates constant names
2016-07-07 14:32:05 -04:00
c78b2088eb
- Updates the check for invalid API endpoint
2016-07-07 14:20:27 -04:00
150364de3a
- Fixes API endpoint naming convention
...
- Generates/saves cron daemon token as soon as its executed
2016-07-07 14:00:07 -04:00
89253125af
- Fixes a typo
2016-07-07 10:00:12 -04:00
f557881462
- Updates code based on review comments
2016-07-07 09:01:59 -04:00
8dba4727c4
- Updates open/click link generation logic to utilize API's buildRequest
...
method
2016-07-06 22:57:39 -04:00
bd814baf28
- Fixes data not being passed to API buildRequest method
2016-07-06 10:02:47 -04:00
2db681d908
- Adds and centralizes API data encoding/decoding method
2016-07-06 09:22:34 -04:00
cb2faec8b2
- Refactors API
...
- Updates existing classes to use the refactored API methods
2016-07-05 20:17:25 -04:00