services - revaturelabs/ask-frontend GitHub Wiki
Fields
questionId
Functions
constructor
-
- dependency injection (parameter):
private http: HttpClient
- dependency injection (parameter):
getQuestions
-
- no parameters
-
- return:
Observable<Question[]>
- return:
-
- GET request
setQuestionId
-
- parameter:
questionId
- parameter:
getQuestionId
-
- no parameters
getQuestionById
-
- parameter:
questionId
- parameter:
-
- return:
Observable<Question>
- return:
-
- GET request
getQuestionImages
-
- parameter:
questionId
- parameter:
-
- return:
Observable<Image[]>
- return:
saveQuestion
-
- parameter:
question
- parameter:
-
- return:
Observable<Question>
- return:
-
- POST request
updateQuestion
-
- parameter:
question
- parameter:
-
- return:
Observable<Question>
- return:
-
- PUT request
highlightResponse
-
- parameter:
question
- parameter:
-
- return:
Observable<Question>
- return:
-
- PATCH request
removePost(question): Observable<Question>
-
- parameter:
question
- parameter:
-
- return:
Observable<Question>
- return:
-
- DELETE request
Fields
Functions
constructor
-
- dependency injection (parameter):
private http: HttpClient
- dependency injection (parameter):
getResponses
-
- no parameters
-
- return:
Observable<Response[]>
- return:
-
- GET request
getResponseById
-
- parameter:
responseId
- parameter:
-
- return:
Observable<Response>
- return:
-
- GET request
saveResponse
-
- parameter:
response
- parameter:
-
- return:
Observable<Response>
- return:
-
- POST request
updateResponse
-
- parameter:
response
- parameter:
-
- return:
Observable<Response>
- return:
-
- PUT request
removeResponse
-
- parameter:
response
- parameter:
-
- return:
Observable<Response>
- return:
-
- DELETE request
Fields
Functions
constructor
-
- dependency injection (parameter):
private http: HttpClient
- dependency injection (parameter):
getTags
-
- no parameters
-
- return:
Observable<Tag[]>
- return:
-
- GET request
saveExpertTags
-
- parameters:
tags
,expertId
- parameters:
-
- return:
Observable
- return:
-
- PUT request
getExpertTags
-
- parameter:
expertId
- parameter:
-
- return:
Observable
- return:
-
- GET request
Fields
- loggedIn: boolean
- account: Account
Functions
constructor
-
- dependency injection (parameter):
private router: Router
- dependency injection (parameter):
isLoggedIn
-
- no parameters
-
- return:
boolean
- return:
userLogin
-
- parameter:
account
- parameter:
userLogOut
-
- no parameters