dev
Last change
on this file since 31a8672 was 31a8672, checked in by Стојков Марко <mst@…>, 3 years ago |
Frontend component for asking question
|
-
Property mode
set to
100644
|
File size:
559 bytes
|
Line | |
---|
1 | import { HttpClient } from '@angular/common/http';
|
---|
2 | import { Injectable } from '@angular/core';
|
---|
3 | import { Observable } from 'rxjs';
|
---|
4 | import { BaseApiService } from 'src/app/shared-app/services/base-api.service';
|
---|
5 | import { AskQuestionRequest } from '../models/questioning-request.models';
|
---|
6 |
|
---|
7 | @Injectable({
|
---|
8 | providedIn: 'root'
|
---|
9 | })
|
---|
10 | export class QuestioningApiService extends BaseApiService {
|
---|
11 | constructor(protected http: HttpClient) {
|
---|
12 | super(http);
|
---|
13 | }
|
---|
14 |
|
---|
15 | askQuestion(body: AskQuestionRequest): Observable<void> {
|
---|
16 | return this.post('v1/questions', body);
|
---|
17 | }
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.