source: src/Clients/Angular/finki-chattery/src/app/modules/questioning/services/questioning-api.service.ts@ 31a8672

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 
1import { HttpClient } from '@angular/common/http';
2import { Injectable } from '@angular/core';
3import { Observable } from 'rxjs';
4import { BaseApiService } from 'src/app/shared-app/services/base-api.service';
5import { AskQuestionRequest } from '../models/questioning-request.models';
6
7@Injectable({
8 providedIn: 'root'
9})
10export 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.