added creation of account but bad request (400)
This commit is contained in:
@@ -59,9 +59,9 @@ In your Angular project:
|
||||
|
||||
```typescript
|
||||
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { provideApi } from '';
|
||||
import {ApplicationConfig} from '@angular/core';
|
||||
import {provideHttpClient} from '@angular/common/http';
|
||||
import {provideApi} from '';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@@ -77,15 +77,15 @@ If you're still using `AppModule` and haven't [migrated](https://angular.dev/ref
|
||||
can still import an Angular module:
|
||||
|
||||
```typescript
|
||||
import { ApiModule } from '';
|
||||
import {ApiModule} from '';
|
||||
```
|
||||
|
||||
If different from the generated base path, during app bootstrap, you can provide the base path to your service.
|
||||
|
||||
```typescript
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { provideApi } from '';
|
||||
import {ApplicationConfig} from '@angular/core';
|
||||
import {provideHttpClient} from '@angular/common/http';
|
||||
import {provideApi} from '';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@@ -98,9 +98,9 @@ export const appConfig: ApplicationConfig = {
|
||||
|
||||
```typescript
|
||||
// with a custom configuration
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { provideApi } from '';
|
||||
import {ApplicationConfig} from '@angular/core';
|
||||
import {provideHttpClient} from '@angular/common/http';
|
||||
import {provideApi} from '';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@@ -147,10 +147,10 @@ you can create an alias name when importing the modules
|
||||
in order to avoid naming conflicts:
|
||||
|
||||
```typescript
|
||||
import { provideApi as provideUserApi } from 'my-user-api-path';
|
||||
import { provideApi as provideAdminApi } from 'my-admin-api-path';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { environment } from '../environments/environment';
|
||||
import {provideApi as provideUserApi} from 'my-user-api-path';
|
||||
import {provideApi as provideAdminApi} from 'my-admin-api-path';
|
||||
import {HttpClientModule} from '@angular/common/http';
|
||||
import {environment} from '../environments/environment';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* the dto used to send an error response to the client
|
||||
*/
|
||||
export interface ErrorResponse {
|
||||
/**
|
||||
* the http status code sent to the client. default is 400.
|
||||
*/
|
||||
statusCode?: number;
|
||||
/**
|
||||
* the message for the error response
|
||||
*/
|
||||
message?: string;
|
||||
/**
|
||||
* the collection of errors for the current context
|
||||
*/
|
||||
errors?: { [key: string]: Array<string>; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user