mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: warn against using in-memory-web-api in production
(cherry picked from commit 3438614f5e)
This commit is contained in:
committed by
leonsenft
parent
ee63c0a813
commit
0739e3a123
@@ -3,6 +3,13 @@
|
||||
An in-memory web api for Angular demos and tests
|
||||
that emulates CRUD operations over a RESTy API.
|
||||
|
||||
> **WARNING**
|
||||
>
|
||||
> This package is a development and testing tool only.
|
||||
> The in-memory data store applies no authentication or authorization
|
||||
> to the requests it answers.
|
||||
> Never ship it in a production app.
|
||||
|
||||
It intercepts Angular `Http` and `HttpClient` requests that would otherwise go to the remote server and redirects them to an in-memory data store that you control.
|
||||
|
||||
See [Austin McDaniel's article](https://medium.com/@amcdnl/mocking-with-angular-more-than-just-unit-testing-cbb7908c9fcc)
|
||||
|
||||
Reference in New Issue
Block a user