d2-02-api-service
Installation
SKILL.md
Day 2 · Step 2 — API service
If the entity isn't already established in this conversation, ask which entity (it must match the one exposed by up-api's CRUD endpoints).
up-app/src/app/services/<entity>.service.ts:
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
export interface <Entity> {
id?: number;
// one field per column from the Day 1 entity spec
}