//Content-Type: application/json

search = Search Term

Search request always only shows 100 results per trend at a time.
limit = starting point for these results.
If no limit is defined then staring point is at 0.



//REQUEST
//GET https://trendone-ext.aumentoo.cloud/api/v1?search={SEARCH_WORD}
    {SEARCH_WORD} //If the search looks like this Artificial Intelligence, then it will search for Artificial and for Intelligence
                  //If its put in ".." like this "Artificial Intelligence" then it will search for the full search input "Artificial Intelligence"
                  //Search word should minimally be 3 characters short.
Addable Parameters are:
    orderby={ORDER_PARA} // "recent" (most recent first) or "default" (no order)   //If not set then returned as default
    limit={NUMERIC} //how many Microtrends should be returned. Doesnt effect Mega or Macrotrends //If not set default is 100
    start={STARTING_POINT} //From which element on wards elements should be returned //If not set default is 0
    country={COUNTRY_CODE} //Only returns countries with this country code e.g "DE" //If not set then all countries get returned
    table=Mega,Macro,Micro //Only returns responses for tables that got set here, if table is not set at all, then response for Mega,Macro and Micro get send

E.g:
//GET https://trendone-ext.aumentoo.cloud/api/v1?search={SEARCH_WORD}&limit={NUMERIC}$start={STARTING_POINT}
//GET https://trendone-ext.aumentoo.cloud/api/v1?search={SEARCH_WORD}&orderby={ORDER_PARA}
//GET https://trendone-ext.aumentoo.cloud/api/v1?search={SEARCH_WORD}&orderby={ORDER_PARA}&country={COUNTRY_CODE}
//Can put &table on anyone of these



//RESPONSE
{
    „success“: true,
	„response“:{
		„megatrends“:{
			„Count“: int,
			„results“:[
				{
					„ID“: int,
					„NameDE“: "String",
					"DescriptionDE": "String",
					"NameEN": "String",
					"DescriptionEN": "String",
					"Visual": "String",
					"Created": "String",
                    "Updated": "String",
                    "Status": "String",
                    "TrendOneURL": "String",
				}
			]
		},
		„macrotrends“:{
		    „Count“: int,
            „results“:[
            	{
            		„ID“: int,
            		„NameDE“: "String",
            		"DescriptionDE": "String",
            		"NameEN": "String",
            		"DescriptionEN": "String",
            		"Visual": "String",
            		"Created": "String",
                    "Updated": "String",
                    "Status": "String",
                    "TrendOneURL": "String",
            	}
            ]
		},
		„microtrends“:{
             „Count“: int,
             „results“:[
                  {
                  „ID“: int,
                  „NameDE“: "String",
                  "DescriptionDE": "String",
                  "NameEN": "String",
                  "DescriptionEN": "String",
                  "Visual": ["String", "String"],
                  "CountryCode": "String",
                  "CountryGER": "String",
                  "CountryEN": "String",
                  "Created": "String",
                  "Updated": "String",
                  "Status": "String",
                  "TrendOneURL": "String"Trend
                    }
             ]
		}
	}
}

//REQUEST
//GET https://trendone-ext.aumentoo.cloud/api/v1?mega={id},{id}

{
    „success“: true,
	„response“:[{
            „ID“: int,
			„NameDE“: "String",
			"DescriptionDE": "String",
			"NameEN": "String",
			"DescriptionEN": "String",
			"Visual": "String",
			"CountMicro": int,
			"CountMicro30Days": int,
            "GrowthMicro30Days": "String",
			"Created": "String",
			"Updated": "String",
			"Status": "String"
			"TrendOneURL": "String",
	    },
	    {
             „ID“: int,
          	„NameDE“: "String",
          	"DescriptionDE": "String",
          	"NameEN": "String",
          	"DescriptionEN": "String",
          	"Visual": "String",
          	"CountMicro": int,
            "CountMicro30Days": int,
            "GrowthMicro30Days": "String",
          	"Created": "String",
          	"Updated": "String",
          	"Status": "String"
          	"TrendOneURL": "String",
        }
	]
}

//REQUEST
//GET https://trendone-ext.aumentoo.cloud/api/v1?macro={id},{id}

{
    „success“: true,
	„response“:[{
            „ID“: int,
			„NameDE“: "String",
			"DescriptionDE": "String",
			"NameEN": "String",
			"DescriptionEN": "String",
			"Visual": "String",
			"CountMicro": int,
			"CountMicro30Days": int,
			"GrowthMicro30Days": "String",
			"Created": "String",
            "Updated": "String",
			"Status": "String"
			"TrendOneURL": "String",
	}]
}

//REQUEST
//GET https://trendone-ext.aumentoo.cloud/api/v1?macro={id},{id}&chart=true

{
    „success“: true,
	„response“:[{
            „ID“: int,
			„NameDE“: "String",
			"DescriptionDE": "String",
			"NameEN": "String",
			"DescriptionEN": "String",
			"Visual": "String",
			"CountMicro": int,
            "CountMicro30Days": int,
            "GrowthMicro30Days": "String",
			"Created": "String",
            "Updated": "String",
			"Status": "String"
			"TrendOneURL": "String",
			"ChartData": {
			    "LineData": [ int, int, ...],   //Total Microtrends created to this point
			    "ColumnData": [int, int, ...],  //Microtrends created in a month
			    "TimeLabel": [string, string, ...]
			}
	}]
}


//REQUEST
//GET https://trendone-ext.aumentoo.cloud/api/v1?micro={id},{id}

{
    „success“: true,
	„response“:[{
            „ID“: int,
			„NameDE“: "String",
			"DescriptionDE": "String",
			"NameEN": "String",
			"DescriptionEN": "String",
			"Url": "String",
			"TrendOneURL": "String",
			"Initiators": "JSON",
			"Category": "String"
			"Industries": [
			        {
			            "Name": "String",
			        },
			        {
			            "Name": "String",
			        }
			    ],
			"Context": [
			        {
			            "MegaName": "String",
			            "TrendOneURL_Mega": "String",
			            "MacroName": "String",
			            "TrendOneURL_Macro": "String"
			        },
			        {
                    	"MegaName": "String",
                    	"TrendOneURL_Mega": "String",
                    	"MacroName": "String",
                    	"TrendOneURL_Macro": "String"
                    }
			    ],
			"CountryCode": "String",
			"Visual": "String",
			"Created": "String",
			"Updated": "String",
			"Status": "String"
	    },
	    {
            „ID“: int,
        	„NameDE“: "String",
        	"DescriptionDE": "String",
        	"NameEN": "String",
        	"DescriptionEN": "String",
        	"Url": "String",
        	"TrendOneURL": "String",
            "Initiators": "JSON",
			"Category": "String"
			"Industries": [
			        {
			            "Name": "String",
			        },
			        {
			            "Name": "String",
			        }
			    ],
			"Context": [
			        {
			            "MegaName": "String",
			            "TrendOneURL_Mega": "String",
			            "MacroName": "String",
			            "TrendOneURL_Macro": "String"
			        },
			        {
                    	"MegaName": "String",
                    	"TrendOneURL_Mega": "String",
                    	"MacroName": "String",
                    	"TrendOneURL_Macro": "String"
                    }
			    ],
        	"CountryCode" => "String",
        	"Visual": "String",
        	"Created": "String",
        	"Updated": "String",
        	"Status": "String"
        }
	]
}


//Request
//GET https://trendone-ext.aumentoo.cloud/api/v1?news={table}
Addable Parameters are:
    limit={NUMERIC} //how many Microtrends should be returned. Doesnt effect Mega or Macrotrends //If not set default is 100
    start={STARTING_POINT} //From which element on wards elements should be returned //If not set default is 0
    country={COUNTRY_CODE} //Only returns countries with this country code e.g "DE" //If not set then all countries get returned
 If Parameter names are spelled wrong, then they just dont get registered and it is if they where not set at all.

{table} = The kind of trend that should be returned. Mega,Macro or Micro. Can return multiple if you set it like this: news=mega,macro,micro or news=macro,micro etc.

E.g:
//GET https://trendone-ext.aumentoo.cloud/api/v1?news={table}&limit={NUMERIC}$start={STARTING_POINT}
//GET https://trendone-ext.aumentoo.cloud/api/v1?news={table}&country={COUNTRY_CODE}
The returned data is always ordered by most recent.


//RESPONSE
//If only one table is set, then only the corresponding one is returned.
{
    „success“: true,
	„response“:{
		„megatrends“:{
			„Count“: int,
			„results“:[
				{
					„ID“: int,
					„NameDE“: "String",
					"DescriptionDE": "String",
					"NameEN": "String",
					"DescriptionEN": "String",
					"Visual": "String",
					"Created": "String",
                    "Updated": "String",
                    "Status": "String",
                    "TrendOneURL": "String",
				}
			]
		},
		„macrotrends“:{
		    „Count“: int,
            „results“:[
            	{
            		„ID“: int,
            		„NameDE“: "String",
            		"DescriptionDE": "String",
            		"NameEN": "String",
            		"DescriptionEN": "String",
            		"Visual": "String",
            		"Created": "String",
                    "Updated": "String",
                    "Status": "String",
                    "TrendOneURL": "String",
            	}
            ]
		},
		„microtrends“:{
             „Count“: int,
             „results“:[
                  {
                  „ID“: int,
                  „NameDE“: "String",
                  "DescriptionDE": "String",
                  "NameEN": "String",
                  "DescriptionEN": "String",
                  "Visual": ["String", "String"],
                  "CountryCode": "String",
                  "CountryGER": "String",
                  "CountryEN": "String",
                  "Created": "String",
                  "Updated": "String",
                  "Status": "String",
                  "TrendOneURL": "String"Trend
                    }
             ]
		}
	}
}
