Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: JSON API #29

Open
jaswrks opened this issue Feb 23, 2015 · 1 comment
Open

Feature Request: JSON API #29

jaswrks opened this issue Feb 23, 2015 · 1 comment

Comments

@jaswrks
Copy link

jaswrks commented Feb 23, 2015

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:

  • apiKey: Secret API key.
  • title : Title of the Redirect.
  • url : URL to redirect to.

Output:

{"redirectURL": "http://example.com/r/redirect-title/"}
@raamdev
Copy link
Owner

raamdev commented Feb 23, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants