curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "query SearchSessions($query: String!) { searchSessions(query: $query, limit: 10) { total results { id name rank } } }",
"variables": {"query": "authentication bug fix"}
}' \
https://cloud.specstory.com/api/v1/graphql
{
"data": {
"searchSessions": {
"total": 3,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Fix authentication token validation",
"rank": 0.95
},
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"name": "Debug login authentication flow",
"rank": 0.87
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"name": "Implement OAuth authentication",
"rank": 0.72
}
]
}
}
}
Execute GraphQL queries for advanced data retrieval and search
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "query SearchSessions($query: String!) { searchSessions(query: $query, limit: 10) { total results { id name rank } } }",
"variables": {"query": "authentication bug fix"}
}' \
https://cloud.specstory.com/api/v1/graphql
{
"data": {
"searchSessions": {
"total": 3,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Fix authentication token validation",
"rank": 0.95
},
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"name": "Debug login authentication flow",
"rank": 0.87
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"name": "Implement OAuth authentication",
"rank": 0.72
}
]
}
}
}
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "query SearchSessions($query: String!) { searchSessions(query: $query, limit: 10) { total results { id name rank } } }",
"variables": {"query": "authentication bug fix"}
}' \
https://cloud.specstory.com/api/v1/graphql
{
"data": {
"searchSessions": {
"total": 3,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Fix authentication token validation",
"rank": 0.95
},
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"name": "Debug login authentication flow",
"rank": 0.87
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"name": "Implement OAuth authentication",
"rank": 0.72
}
]
}
}
}
Was this page helpful?