BORHANUDDIN1 / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

POST https://www.googleapis.com/mapsengine/v1/tables/upload?key={YOUR_API_KEY}, here YOUR_API_KEY is not replaceable. #341

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
https://developers.google.com/maps-engine/documentation/tutorial-create-map#auth
2. "Create an empty table in Google Maps Engine"
3. Example request: Create table metadata

What is the expected output? What do you see instead?
{
  "id": "06949743362417167455-16071188762309719429",
  "etag": "\"16413077741873510721\"",
  "projectId": "06949743362417167455",
  "name": "Population change",
  "description": "World population change",
  "tags": [
    "population growth",
    "population change"
  ],
  "files": [
    {
      "filename": "population-growth.csv",
      "uploadStatus": "inProgress"
    },
    {
      "filename": "population-growth.vrt",
      "uploadStatus": "inProgress"
    }
  ],
  "sourceEncoding": "UTF-8",
  "processingStatus": "notReady",
  "creationTime": "2014-08-25T22:31:41.443Z",
  "lastModifiedTime": "2014-08-25T22:31:41.443Z"
}

getting this:- 
400 OK

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "notFound",
    "message": "The specified entity does not exist.",
    "locationType": "other",
    "location": "projectId"
   }
  ],
  "code": 400,
  "message": "The specified entity does not exist."
 }

What version of the product are you using? On what operating system?
v1, mac

Please provide any additional information below.
sending above request basically sent request body
POST https://www.googleapis.com/mapsengine/v1/tables/upload?key={YOUR_API_KEY}

{
 "projectId": "1062007310235",
 "name": "Cascadian Train Stations",
 "description": "A partial list of mag-lev stations in the nation of Cascadia.",
 "tags": [
  "stations",
  "train",
  "cascadia"
 ],
 "schema": {
  "columns": [
   {
    "name": "geometry",
    "type": "points"
   },
   {
    "name": "station_name",
    "type": "string"
   }
  ]
 }
}

so key={YOUR_API_KEY}, api_key is not replaced automatically and also not able 
to set api_key in request body.

Original issue reported on code.google.com by shishirv...@gmail.com on 11 Jun 2015 at 8:52