raamdev / wp-redirects

Redirects (a new Post Type) for WordPress®.
1 stars 2 forks source link

Feature Request: JSON API #29

Open jaswrks opened 9 years ago

jaswrks commented 9 years ago

It would be cool if WP Redirects could expose a JSON API that would allow for the creation of Redirects. I'm imagining just something simple like:

http://example.com/?wp_redirects_api=json

Payload:

Output:

{"redirectURL": "http://example.com/r/redirect-title/"}
raamdev commented 9 years ago

Cool idea! Having something like this would allow for integration with stuff like JXA and command-line utilities that might script several redirects.

I'll add this to the todo list for the Next Release.