GET
/scout/stream
const url = 'http://localhost:8000/scout/stream?q=';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8000/scout/stream?q='Server-Sent Events. Always HTTP 200: problems arrive as an error event (EventSource cannot read status codes).
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”q
Q
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Example generated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}