"ng6-udm-mock" JsonPlaceholderとjson-serverを使用するためのAngular6用サービスライブラリ ref: https://qiita.com/SOhtsu/items/b19818c17f39aaddaa98
✓ Published0🌍 Public
OOhtsu
Last edited Sep 18, 2018
Created on Sep 5, 2018
This example demonstrates a service library for Angular 6 that provides CRUD operations for mock data entities such as posts, comments, albums, photos, todos, and users. It uses ng6-udm-mock with json-server and JSONPlaceholder as the backend API. The code defines TypeScript interfaces for all data models and exposes Observable-based methods like getAllPosts(), getPost(id), addPost(), updatePost(), and deletePost(). The AppComponent shows how to subscribe to these methods for retrieving and manipulating data, with error handling for HTTP responses.
AI-generated description