Skip to main content

Search Incubators

This endpoint performs search od Incubators

info

This operation requires authentication only if content_availability community option is false.

HTTP Request

GET /api/v2/incubator/search/

Parameters

NameInTypeRequiredDescription
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
searchquerystringfalseA search term
statusquerystringfalseValid values are from 0 to 3
orderingquerystringfalseWhich field to use when ordering the results

Status valid Values

ParameterValueDescription
status0pending
status1proposal
status2approved
status3ignored

Example Request


const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/incubator/search/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Incubator)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"name": "string",
"slug": "string",
"slogan": "string",
"status": "integer",
"approved_category": {Category},
"added_at": "string",
"user": {
"id": "integer",
"username": "string",
"real_name": "string",
"avatar": "string",
"ext_id": "integer"
},
"subscribers_count": "integer",
"subscribers_threshold": "integer",
"subscribed": "boolean"
}
]
}