Review
Introduction
List Endpoints
Create Comment
List Comment
Update Comment
Introduction
REST API End Points for managing and checking GD Reviews.
EndPoints
/wp-json/geodir/v2/reviews
Output
[
{
"id": 25,
"post": 871,
"parent": 0,
"author": 1,
"author_name": "admin",
"author_url": "",
"date": "2019-05-09T15:13:05",
"date_gmt": "2019-05-09T15:13:05",
"content": {
"rendered": "Some ttext
\n"
},
"link": "http://local.newwp.test/places/canada/ontario/king/houses/richmore-apartments-test123-food2#comment-25",
"status": "approved",
"type": "comment",
"post_type": "gd_place",
"rating": 5,
"country": "Canada",
"region": "Ontario",
"city": "King",
"latitude": "-79.58547458052635",
"longitude": "44.012415575653726",
"author_avatar_urls": {
"24": "http://1.gravatar.com/avatar/ad5dd285560221a7302608c74c690035?s=24&d=mm&r=g",
"48": "http://1.gravatar.com/avatar/ad5dd285560221a7302608c74c690035?s=48&d=mm&r=g",
"96": "http://1.gravatar.com/avatar/ad5dd285560221a7302608c74c690035?s=96&d=mm&r=g"
},
"meta": [],
"_links": {
"self": [
{
"href": "http://local.newwp.test/wp-json/geodir/v2/reviews/25"
}
],
"collection": [
{
"href": "http://local.newwp.test/wp-json/geodir/v2/reviews"
}
],
"author": [
{
"embeddable": true,
"href": "http://local.newwp.test/wp-json/wp/v2/users/1"
}
],
"up": [
{
"embeddable": true,
"post_type": "gd_place",
"href": "http://local.newwp.test/wp-json/geodir/v2/places/871"
}
]
}
}
]
Create Comment
/wp-json/geodir/v2/reviews
Output
To Create comment we will need to authenticate user with Token Key.
List Comment by ID EndPoints
/wp-json/geodir/v2/reviews/[post_id]
Get list of comment by comment id.
Update Comment EndPoints
You will need to add authorization header.



