0.2.6 • Published 4 years ago

rzeassistant_client_api v0.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

rzeassistant_client_api

KnowYourPlaceApi - JavaScript client for rzeassistant_client_api API do 'Aplikacja dla studentów zagranicznych'. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 0.2.6
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

Install it via:

npm install rzeassistant_client_api --save

Getting Started

Please follow the installation instruction and execute the following JS code:

var KnowYourPlaceApi = require('rzeassistant_client_api');
var defaultClient = KnowYourPlaceApi.ApiClient.instance;

// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new KnowYourPlaceApi.ArticlesApi();
var body = new KnowYourPlaceApi.CreateArticleDto(); // {CreateArticleDto}

var callback = function (error, data, response) {
	if (error) {
		console.error(error);
	} else {
		console.log('API called successfully. Returned data: ' + data);
	}
};
api.articleControllerCreate(body, callback);

Documentation for Authorization

bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
KnowYourPlaceApi.ArticlesApiarticleControllerCreatePOST /api/v1/articlesCreates a new article
KnowYourPlaceApi.ArticlesApiarticleControllerFindAllGET /api/v1/articlesReturns a list of articles containing phrase in the title, content, author or category, ordered by orderBy and limited to limit.If the phrase and the limit are empty, returns all articles.
KnowYourPlaceApi.ArticlesApiarticleControllerFindByIdGET /api/v1/articles/{id}Returns an article by id
KnowYourPlaceApi.ArticlesApiarticleControllerUpdatePOST /api/v1/articles/{id}Updates an article by id
KnowYourPlaceApi.ArticlesApiarticleControllerUpdateDislikesByIdPOST /api/v1/articles/{id}/dislikesUpdates dislike count of the article
KnowYourPlaceApi.ArticlesApiarticleControllerUpdateLikesByIdPOST /api/v1/articles/{id}/likesUpdates like count of the article
KnowYourPlaceApi.BannedArticleApibannedArticleControllerBanArticlePOST /api/v1/bannedArticleCreates a new banned article
KnowYourPlaceApi.BannedArticleApibannedArticleControllerFindBannedArticleGET /api/v1/bannedArticle/{id}Returns banned article details
KnowYourPlaceApi.BannedUserApibannedUserControllerBanUserPOST /api/v1/bannedUserCreates a new banned user
KnowYourPlaceApi.BannedUserApibannedUserControllerFindBannedUserGET /api/v1/bannedUser/{id}Returns banned user details
KnowYourPlaceApi.CategoriesApicategoryControllerCreatePOST /api/v1/categoriesCreates a new category
KnowYourPlaceApi.CategoriesApicategoryControllerFindAllGET /api/v1/categoriesReturns all categories
KnowYourPlaceApi.CategoriesApicategoryControllerFindByIdGET /api/v1/categories/{id}Returns a category with the given id
KnowYourPlaceApi.CategoriesApicategoryControllerRemoveByIdDELETE /api/v1/categories/{id}Removes a category by the given id
KnowYourPlaceApi.ClipboardsApiclipboardControllerAddArticleByIdPOST /api/v1/clipboards/{id}/addAdds a article to the clipboard
KnowYourPlaceApi.ClipboardsApiclipboardControllerCreatePOST /api/v1/clipboardsCreates a new clipboard
KnowYourPlaceApi.ClipboardsApiclipboardControllerFindByIdGET /api/v1/clipboards/{id}Returns a clipboard by id
KnowYourPlaceApi.ClipboardsApiclipboardControllerFindClipboardByUserIdGET /api/v1/clipboards/user/{id}Returns clipboard associated with the given user
KnowYourPlaceApi.ClipboardsApiclipboardControllerRemoveArticleByIdPOST /api/v1/clipboards/{id}/removeRemoves a article from the clipboard
KnowYourPlaceApi.ClipboardsApiclipboardControllerRemoveByIdDELETE /api/v1/clipboards/{id}Removes a clipboard by id
KnowYourPlaceApi.ClipboardsApiclipboardControllerUserClipboardContainsArticleIdGET /api/v1/clipboards/user/{id}/containsChecks if user's clipboard contains the given article
KnowYourPlaceApi.CommentsApicommentControllerCreatePOST /api/v1/commentsCreates a new comment
KnowYourPlaceApi.CommentsApicommentControllerFindByArticleIdGET /api/v1/comments/article/{id}Returns all comments by the given article id
KnowYourPlaceApi.CommentsApicommentControllerFindByAuthorIdGET /api/v1/comments/user/{id}Returns all comments by the given user id
KnowYourPlaceApi.ImagesApiimageControllerCreatePOST /api/v1/imagesUploads a new image
KnowYourPlaceApi.ImagesApiimageControllerFindAllUploadedByGET /api/v1/images/user/{id}Returns all images by user id
KnowYourPlaceApi.ImagesApiimageControllerRemoveByLinkDELETE /api/v1/images/{id}Removes an image
KnowYourPlaceApi.ImagesApiimageDataControllerFindByLinkGET /files/images/{id}Returns an image
KnowYourPlaceApi.InterestsApiinterestControllerCreatePOST /api/v1/interestsCreates a new interest
KnowYourPlaceApi.InterestsApiinterestControllerFindAllGET /api/v1/interestsReturns all interests
KnowYourPlaceApi.NotificationsApinotificationControllerCreatePOST /api/v1/notificationsCreates a new notification
KnowYourPlaceApi.NotificationsApinotificationControllerFindByUserIdGET /api/v1/notifications/user/{id}Returns a list of all notifications by the given user id
KnowYourPlaceApi.UsersApiuserControllerCreatePOST /api/v1/usersCreates new user
KnowYourPlaceApi.UsersApiuserControllerFindByIdGET /api/v1/users/{id}Returns user details by id
KnowYourPlaceApi.UsersApiuserControllerLoginPOST /api/v1/users/loginReturns user details by password hash

Documentation for Models

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.75

4 years ago

0.0.74

4 years ago

0.0.73

4 years ago

0.0.72

4 years ago

0.0.71

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago