/search
Get information on a request
GET
https://pm415.com/api/search/:query/:orgid/:showarchived
Gets the information on a text string request.
Path Parameters
Name
Type
Description
:showarchived
boolean
True or false
:orgid
number
The ID of the org
:query
string
Your text string request
Headers
Name
Type
Description
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
{
"success": true,
"data": [
{
"title": "Api created",
"description": "api created Description",
"type": "initiatives",
"author": {
"id": 13,
"email": "hwyxlisjb@emlpro.com",
"firstName": "alena",
"lastName": "prilipko"
},
"assignee": {},
"organization": 17,
"id": 25,
"createdOn": "2019-04-27T07:05:58.621Z",
"ownerId": "",
"archived": 0
}
],
"query": {
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "api",
"fields": [
"title",
"description",
"comment",
"author.firstName",
"author.lastName",
"author.email",
"assignee.firstName",
"assignee.lastName",
"assignee.email",
"ownerTable"
],
"type": "phrase_prefix"
}
},
{
"match": {
"organization": "17"
}
}
]
}
}
}
}
Add all data
GET
https://pm415.com/api/search/reindex
Adds all data from database into elastic index.
Headers
Name
Type
Description
Authentication
string
Authorization: Bearer 50ca9ba0f7b1444fa55d5
{
"success": true,
"indexInitiatives": true,
"indexItems": true,
"indexBacklogs": true,
"indexBugs": true,
"indexComments": true
}
Last updated
Was this helpful?