API Documentation
The Pathwayful API is easy to use and free for all plans.
Submit Comment
Submit a comment on a public issue. Comments require approval before they are visible. No authentication required.
POST
https://api.pathwayful.com/roadmaps/:slug/issues/:issue_id/comments
Headers
-
Content-TypeREQUIRED STRINGapplication/json
Request body
{
"author_name": "Jane Doe",
"author_email": "jane@example.com",
"content": "This would be a great feature!"
}
Response body
{
"success": true,
"message": "Your comment is pending approval"
}
Code Examples
curl -X POST "https://api.pathwayful.com/roadmaps/product-roadmap/issues/your-issue-id/comments" \
-H "Content-Type: application/json" \
-d '{
"author_name": "Jane Doe",
"author_email": "jane@example.com",
"content": "This would be a great feature!"
}'
// Submit a comment on a public issue (no auth required)
const slug = 'product-roadmap';
const issueId = 'your-issue-id';
const response = await fetch(`https://api.pathwayful.com/roadmaps/${slug}/issues/${issueId}/comments`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
author_name: 'Jane Doe',
author_email: 'jane@example.com',
content: 'This would be a great feature!'
})
});
const result = await response.json();
console.log('Comment submitted:', result.message);
# Submit a comment on a public issue (no auth required)
import requests
slug = 'product-roadmap'
issue_id = 'your-issue-id'
data = {
'author_name': 'Jane Doe',
'author_email': 'jane@example.com',
'content': 'This would be a great feature!'
}
response = requests.post(
f'https://api.pathwayful.com/roadmaps/{slug}/issues/{issue_id}/comments',
json=data
)
result = response.json()
print(f"Comment submitted: {result['message']}")
// Submit a comment on a public issue (no auth required)
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
slug := "product-roadmap"
issueID := "your-issue-id"
data := map[string]string{
"author_name": "Jane Doe",
"author_email": "jane@example.com",
"content": "This would be a great feature!",
}
jsonData, _ := json.Marshal(data)
url := "https://api.pathwayful.com/roadmaps/" + slug + "/issues/" + issueID + "/comments"
resp, err := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
if err != nil {
panic(err)
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Printf("Comment submitted: %v\n", result["message"])
}
# Submit a comment on a public issue (no auth required)
require 'net/http'
require 'json'
require 'uri'
slug = 'product-roadmap'
issue_id = 'your-issue-id'
uri = URI("https://api.pathwayful.com/roadmaps/#{slug}/issues/#{issue_id}/comments")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = {
author_name: 'Jane Doe',
author_email: 'jane@example.com',
content: 'This would be a great feature!'
}.to_json
response = http.request(request)
result = JSON.parse(response.body)
puts "Comment submitted: #{result['message']}"
<?php
// Submit a comment on a public issue (no auth required)
$slug = 'product-roadmap';
$issueId = 'your-issue-id';
$data = [
'author_name' => 'Jane Doe',
'author_email' => 'jane@example.com',
'content' => 'This would be a great feature!'
];
$ch = curl_init("https://api.pathwayful.com/roadmaps/{$slug}/issues/{$issueId}/comments");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
echo "Comment submitted: " . $result['message'];