# @prowodo/angular-client

Typed Angular client for [ProWoDo](https://prowodo.com).

## Install

```bash
npm install @prowodo/angular-client
```

## Quick start

```typescript
import { ApiModule, Configuration, TasksService } from '@prowodo/angular-client';

@NgModule({
  imports: [
    ApiModule.forRoot(() => new Configuration({
      basePath: 'https://backend.prowodo.com',
      credentials: {
        firebaseAuth: () => localStorage.getItem('FToken') ?? '',
      },
    })),
  ],
})
export class AppModule {}

// In a component:
constructor(private tasks: TasksService) {}

ngOnInit() {
  this.tasks.tasksList().subscribe(tasks => console.log(tasks));
}
```

## API reference

The client is generated from the ProWoDo OpenAPI schema. Browse the runtime schema at `https://backend.prowodo.com/api/schema/swagger-ui/`.

## Versioning

- **Patch** (1.0.x): additive non-breaking — new endpoint, new optional field/param
- **Major** (x.0.0): breaking — removed/renamed endpoint, removed field, changed type

See [CHANGELOG.md](https://github.com/i3idea/prowodo-api-clients/blob/main/CHANGELOG.md) in the repo for release notes.

## License

MIT
