Adding curl example

This commit is contained in:
Daniel García Aubert 2018-08-24 15:11:08 +02:00
parent 7c13561a4f
commit 44c4b29ea2

View File

@ -460,6 +460,7 @@ paths:
tags: tags:
- Named Maps - Named Maps
parameters: parameters:
- $ref: '#/components/parameters/templateName'
- in: query - in: query
name: auth_token name: auth_token
description: > description: >
@ -526,6 +527,11 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/MapResponse' $ref: '#/components/schemas/MapResponse'
x-code-samples:
- lang: Curl
source: |
curl -X GET \
'https://{username}.carto.com/api/v1/map/named/{template_name}/jsonp?auth_token={auth_token}&callback=callback&config={"color": "#ff0000", "cartodb_id": 3}'
'/map/static/center/{layergroupid}/{z}/{lat}/{lng}/{width}/{height}.{format}': '/map/static/center/{layergroupid}/{z}/{lat}/{lng}/{width}/{height}.{format}':
get: get:
parameters: parameters: