From 15b9a1f34bc8e98c8d5eb62fd9ab97de8a205bc8 Mon Sep 17 00:00:00 2001 From: javi santana Date: Thu, 24 Jul 2014 13:01:35 +0200 Subject: [PATCH] fixed documentation --- docs/Map-API.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Map-API.md b/docs/Map-API.md index f1883f79..db593e36 100644 --- a/docs/Map-API.md +++ b/docs/Map-API.md @@ -371,7 +371,7 @@ When using templates, be very careful about your selections as they can give bro curl -X POST \ -H 'Content-Type: application/json' \ -d @template.json \ - 'https://docs.cartodb.com/api/v1/named?api_key=APIKEY' + 'https://docs.cartodb.com/api/v1/map/named?api_key=APIKEY' {% endhighlight %}
RESPONSE
@@ -389,7 +389,7 @@ Instantiating a map allows you to get the information needed to fetch tiles. Tha
{% highlight html %} -POST /api/v1/named/:template_name +POST /api/v1/map/named/:template_name {% endhighlight %} #### Param @@ -408,7 +408,7 @@ The fields you pass as `params.json` depend on the variables allowed by the name #### Example -You can initialize a template map by passing all of the required parameters in a POST to `/api/v1/named/:template_name`. +You can initialize a template map by passing all of the required parameters in a POST to `/api/v1/map/named/:template_name`. Valid credentials will be needed if required by the template. @@ -445,7 +445,7 @@ There is also a special endpoint to be able to initialize a map using JSONP (for
{% highlight bash %} -GET /api/v1/named/:template_name/jsonp +GET /api/v1/map/named/:template_name/jsonp {% endhighlight %} #### Params @@ -457,7 +457,7 @@ GET /api/v1/named/:template_name/jsonp
REQUEST
{% highlight bash %} -curl 'https://docs.cartodb.com/api/v1/named/:template_name/jsonp?auth_token=AUTH_TOKEN&callback=function_name&config=template_params_json' +curl 'https://docs.cartodb.com/api/v1/map/named/:template_name/jsonp?auth_token=AUTH_TOKEN&callback=function_name&config=template_params_json' {% endhighlight %}
RESPONSE