Share comments about solar providers, products and answers.
HTTP POST http://api.opensolar.org/V1/provider/239874124/comment
{
"comment":
{
"text":"These guys are the best."
}
}
HTTP POST http://api.opensolar.org/V1/product/887986/comment
{
"comment":
{
"text":"These guys are the best."
}
}
HTTP POST http://api.opensolar.org/V1/answer/32415/comment
{
"comment":
{
"text":"This is a great answer."
}
}
HTTP POST http://api.opensolar.org/V1/comment/6786899/comment
{
"comment":
{
"text":"I don't agree. I've had a different experience with them."
}
}
If the request is successful, the API will return the HTTP 201 (Created) status code containing a Location header pointing to the URI of this newly created resource.
Location: http://api.opensolar.org/V1/user/william/rating/124214
If there has been an error, the service will return the appropriate HTTP status code - most likely a 400 (Bad Request), 401 (Unauthorized) or 403 (Forbidden) error. See the Developer Authorization page for details on how to submit authenticated API requests.