mirror of
https://github.com/google/nomulus.git
synced 2025-08-28 20:13:46 +02:00
Add console /registrars GET endpoint (#2050)
This commit is contained in:
parent
a9aaa11801
commit
bc57f319e5
8 changed files with 204 additions and 10 deletions
|
@ -62,11 +62,20 @@ export class BackendService {
|
|||
},
|
||||
];
|
||||
return this.http
|
||||
.get<Contact[]>(`/console-api/settings/contacts?registrarId=${registrarId}`)
|
||||
.pipe(catchError((err) => this.errorCatcher<Contact[]>(err, <Contact[]>mockData)));
|
||||
.get<Contact[]>(
|
||||
`/console-api/settings/contacts?registrarId=${registrarId}`
|
||||
)
|
||||
.pipe(
|
||||
catchError((err) =>
|
||||
this.errorCatcher<Contact[]>(err, <Contact[]>mockData)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
postContacts(registrarId: string, contacts: Contact[]): Observable<Contact[]> {
|
||||
postContacts(
|
||||
registrarId: string,
|
||||
contacts: Contact[]
|
||||
): Observable<Contact[]> {
|
||||
return this.http.post<Contact[]>(
|
||||
`/console-api/settings/contacts?registrarId=${registrarId}`,
|
||||
{ contacts }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue