angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 231 forks source link

It does not enable to use models who the id type is a string. #231

Open danielpcampagna opened 5 years ago

danielpcampagna commented 5 years ago

I need to use the model id type as a string. But when I call method post, to add a new model, I got this error: "Collection 'model' id type is non-numeric or unknown. Can only generate numeric ids."

{
   "body": {
      "error": "Collection 'model' id type is non-numeric or unknown. Can only generate numeric ids.",
      "__proto__": {  }
   },
   "headers": {  },
   "status": 422,
   "statusText": "Unprocessable Entity",
   "url": "api/models",
   "__proto__": {  },
}