truongpx396 / techshare_api_qa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swagger

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This Dart package is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Build package: io.swagger.codegen.languages.DartClientCodegen

Requirements

Dart 1.20.0 or later OR Flutter 0.0.20 or later

Installation & Usage

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

name: swagger
version: 1.0.0
description: Swagger API client
dependencies:
  swagger:
    git: https://github.com//.git
      version: 'any'

Local

To use the package in your local drive, please include the following in pubspec.yaml

dependencies:
  swagger:
    path: /path/to/swagger

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:swagger/api.dart';

// TODO Configure OAuth2 access token for authorization: auth
//swagger.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AnswerCommentsApi();
var questionId = questionId_example; // String | 
var answerId = answerId_example; // String | 
var body = new CreateComment(); // CreateComment | 

try {
    var result = api_instance.answerCommentsCreateComment(questionId, answerId, body);
    print(result);
} catch (e) {
    print("Exception when calling AnswerCommentsApi->answerCommentsCreateComment: $e\n");
}

Documentation for API Endpoints

All URIs are relative to https://intetechshare.o2f-it.com/api/qanda

Class Method HTTP request Description
AnswerCommentsApi answerCommentsCreateComment POST /questions/{questionId}/answers/{answerId}/comments AnswerCommentsCreateComment
AnswerCommentsApi answerCommentsCreateUpVoteComment PUT /questions/{questionId}/answers/{answerId}/comments/{commentId}/upvote AnswerCommentsCreateUpVoteComment
AnswerCommentsApi answerCommentsDeleteComment DELETE /questions/{questionId}/answers/{answerId}/comments/{commentId} AnswerCommentsDeleteComment
AnswerCommentsApi answerCommentsDeleteUpVoteComment DELETE /questions/{questionId}/answers/{answerId}/comments/{commentId}/upvote AnswerCommentsDeleteUpVoteComment
AnswerCommentsApi answerCommentsUpdateComment PUT /questions/{questionId}/answers/{answerId}/comments/{commentId} AnswerCommentsUpdateComment
AnswersApi answersCreate POST /questions/{questionId}/answers AnswersCreate
AnswersApi answersCreateUpVoteAnswer PUT /questions/{questionId}/answers/{answerId}/upvote AnswersCreateUpVoteAnswer
AnswersApi answersDelete DELETE /questions/{questionId}/answers/{answerId} AnswersDelete
AnswersApi answersDeleteUpVoteAnswer DELETE /questions/{questionId}/answers/{answerId}/upvote AnswersDeleteUpVoteAnswer
AnswersApi answersPut PUT /questions/{questionId}/answers/{answerId} AnswersPut
QuestionCommentsApi questionCommentsCreateComment POST /questions/{questionId}/comments QuestionCommentsCreateComment
QuestionCommentsApi questionCommentsCreateUpVoteComment PUT /questions/{questionId}/comments/{commentId}/upvote QuestionCommentsCreateUpVoteComment
QuestionCommentsApi questionCommentsDeleteComment DELETE /questions/{questionId}/comments/{commentId} QuestionCommentsDeleteComment
QuestionCommentsApi questionCommentsDeleteUpVoteComment DELETE /questions/{questionId}/comments/{commentId}/upvote QuestionCommentsDeleteUpVoteComment
QuestionCommentsApi questionCommentsUpdateComment PUT /questions/{questionId}/comments/{commentId} QuestionCommentsUpdateComment
QuestionsApi questionsBookmarkQuestion PUT /questions/{questionId}/bookmark QuestionsBookmarkQuestion
QuestionsApi questionsCreate POST /questions QuestionsCreate
QuestionsApi questionsCreateUpVote PUT /questions/{questionId}/upvote QuestionsCreateUpVote
QuestionsApi questionsDelete DELETE /questions/{questionId} QuestionsDelete
QuestionsApi questionsDeleteUpVote DELETE /questions/{questionId}/upvote QuestionsDeleteUpVote
QuestionsApi questionsDeleteVerificationForAnswer DELETE /questions/{questionId}/verified-answer QuestionsDeleteVerificationForAnswer
QuestionsApi questionsGet GET /questions QuestionsGet
QuestionsApi questionsGetBookMarkedQuestions GET /questions/bookmark QuestionsGetBookMarkedQuestions
QuestionsApi questionsGetById GET /questions/{questionId} QuestionsGetById
QuestionsApi questionsGetMyQuestions GET /questions/me QuestionsGetMyQuestions
QuestionsApi questionsUnbookmarkQuestion DELETE /questions/{questionId}/bookmark QuestionsUnbookmarkQuestion
QuestionsApi questionsUpdate PUT /questions/{questionId} QuestionsUpdate
QuestionsApi questionsVerifyAnswer PUT /questions/{questionId}/verified-answer/{answerId} QuestionsVerifyAnswer
TagsApi tagsGet GET /tags TagsGet
UsersApi usersCreateOrUpdateLoggedUser PUT /users/me UsersCreateOrUpdateLoggedUser
UsersApi usersGetByEmail GET /users/email/{email} UsersGetByEmail
UsersApi usersGetById GET /users/{id} UsersGetById
UsersApi usersGetByIds GET /users UsersGetByIds
UsersApi usersGetUserIdOfLoggedUser GET /users/loggeduserid UsersGetUserIdOfLoggedUser

Documentation For Models

Documentation For Authorization

auth

Author

About


Languages

Language:Dart 98.2%Language:Shell 1.8%