Skip to content

Instantly share code, notes, and snippets.

@martijn94
Last active January 26, 2016 23:32
Show Gist options
  • Save martijn94/65a3f15a307a41346695 to your computer and use it in GitHub Desktop.
Save martijn94/65a3f15a307a41346695 to your computer and use it in GitHub Desktop.
WP json custom endpoint doc
"/somename/search":
{
"namespace": "somename",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": [ ]
}
],
"_links":
{
"self": "http://yourwebsite.com/wp-json/somename/search"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment