Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

URLhttps://123.123.123.123/map_module/maps/index.json?angular=true

Methode: GET

Antwort: JSON


Abfrage Parameter:

Mögliche get Parameter, um eine gefilterte Map Liste über die REST API zu bekommen
"angular": true,
"direction": "desc",
"page": 1,
"sort": "Map.name",
"filter[Map.name]": null,
"filter[Map.title]": null,

Finde Map über den Namen

URLhttps://123.123.123.123/map_module/maps/index.json?angular=true&filter[Map.name]=All+hosts

Methode: GET

Antwort: JSON

Antwort
{  
   "all_maps":[  
      {  
         "Map":{  
            "id":"1",
            "name":"All Hosts",
            "title":"All Hosts",
            "background":"79435948-cbb9-428c-8c27-1a9d0e0e92c7.png",
            "refresh_interval":"90000",
            "created":"2017-11-30 15:48:39",
            "modified":"2017-11-30 16:45:21",
            "allowEdit":true,
            "allowCopy":true
         },
         "Container":[  
            {  
               "id":"1",
               "MapsToContainer":{  
                  "id":"1",
                  "container_id":"1",
                  "map_id":"1"
               }
            }
         ]
      }
   ],
   "paging":{  
      "page":1,
      "current":1,
      "count":1,
      "prevPage":false,
      "nextPage":false,
      "pageCount":1,
      "order":{  
         "Map.name":"asc"
      },
      "limit":25,
      "options":[  

      ],
      "paramType":"named",
      "queryScope":null
   }
}


Finde Map über den Titel

URL: https://123.123.123.123/map_module/maps/index.json?angular=true&filter[Map.title]=All+hosts

Methode: GET

Antwort: JSON

Die selbe Antwort wie bereits oben angezeigt.





  • No labels