0.2.0 • Published 6 years ago

podravkaio v0.2.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
6 years ago

podravkaio

Podravkaio - JavaScript client for podravkaio No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.2.0
  • Package version: 0.2.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install podravkaio --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your podravkaio from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('podravkaio') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

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

var Podravkaio = require('podravkaio');

var defaultClient = Podravkaio.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth
var oauth = defaultClient.authentications['oauth'];
oauth.accessToken = "YOUR ACCESS TOKEN"

var api = new Podravkaio.ArticleApi()
var opts = {
  'acceptLanguage': "acceptLanguage_example", // {String} Locale code
  'articleCreate': new Podravkaio.ArticleCreate() // {ArticleCreate} The new Article resource
};

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

Documentation for API Endpoints

All URIs are relative to https://podravkaio.dev.webburza.eu/api

ClassMethodHTTP requestDescription
Podravkaio.ArticleApicreateArticlePOST /articlesCreates a Article resource.
Podravkaio.ArticleApideleteArticleDELETE /articles/{id}Removes the Article resource.
Podravkaio.ArticleApigetArticleGET /articles/{id}Retrieves a Article resource.
Podravkaio.ArticleApigetArticleListGET /articlesRetrieves the collection of Article resources.
Podravkaio.ArticleApigetArticleListMetricsGET /articles/metricsRetrieves the metrics of Article collection.
Podravkaio.ArticleApigetArticleMetricsGET /articles/{id}/metricsRetrieves the metrics of Article resource.
Podravkaio.ArticleApigetArticleStateGET /articles/{id}/stateRetrieves a Article resource.
Podravkaio.ArticleApisetArticleStatePUT /articles/{id}/state/{state}Replaces the Article resource.
Podravkaio.ArticleApiupdateArticlePUT /articles/{id}Replaces the Article resource.
Podravkaio.AttributeDefinitionApicreateAttributeDefinitionPOST /attributes/{entity}Creates a AttributeDefinition resource.
Podravkaio.AttributeDefinitionApideleteAttributeDefinitionDELETE /attributes/{entity}/{id}Removes the AttributeDefinition resource.
Podravkaio.AttributeDefinitionApigetAttributeDefinitionGET /attributes/{entity}/{id}Retrieves a AttributeDefinition resource.
Podravkaio.AttributeDefinitionApigetAttributeDefinitionListGET /attributes/{entity}Retrieves the collection of AttributeDefinition resources.
Podravkaio.BrandApicreateBrandPOST /brandsCreates a Brand resource.
Podravkaio.BrandApideleteBrandDELETE /brands/{id}Removes the Brand resource.
Podravkaio.BrandApigetBrandGET /brands/{id}Retrieves a Brand resource.
Podravkaio.BrandApigetBrandListGET /brandsRetrieves the collection of Brand resources.
Podravkaio.BrandApigetBrandListMetricsGET /brands/metricsRetrieves the metrics of Brand collection.
Podravkaio.BrandApigetBrandMetricsGET /brands/{id}/metricsRetrieves the metrics of Brand resource.
Podravkaio.BrandApigetBrandStateGET /brands/{id}/stateRetrieves a Brand resource.
Podravkaio.BrandApisetBrandStatePUT /brands/{id}/state/{state}Replaces the Brand resource.
Podravkaio.BrandApiupdateBrandPUT /brands/{id}Replaces the Brand resource.
Podravkaio.FileApicreateFilePOST /filesCreates a File resource.
Podravkaio.FileApideleteFileDELETE /files/{id}Removes the File resource.
Podravkaio.FileApigetFileGET /files/{id}Retrieves a File resource.
Podravkaio.FileApigetFileListGET /filesRetrieves the collection of File resources.
Podravkaio.FileApigetFileListMetricsGET /files/metricsRetrieves the metrics of File collection.
Podravkaio.FileApigetFileMetricsGET /files/{id}/metricsRetrieves the metrics of File resource.
Podravkaio.FileApigetFileStateGET /files/{id}/stateRetrieves a File resource.
Podravkaio.FileApisetFileStatePUT /files/{id}/state/{state}Replaces the File resource.
Podravkaio.FileApiupdateFilePUT /files/{id}Replaces the File resource.
Podravkaio.ImageApicreateImagePOST /imagesCreates a Image resource.
Podravkaio.ImageApideleteImageDELETE /images/{id}Removes the Image resource.
Podravkaio.ImageApigetImageGET /images/{id}Retrieves a Image resource.
Podravkaio.ImageApigetImageListGET /imagesRetrieves the collection of Image resources.
Podravkaio.ImageApigetImageListMetricsGET /images/metricsRetrieves the metrics of Image collection.
Podravkaio.ImageApigetImageMetricsGET /images/{id}/metricsRetrieves the metrics of Image resource.
Podravkaio.ImageApigetImageStateGET /images/{id}/stateRetrieves a Image resource.
Podravkaio.ImageApisetImageStatePUT /images/{id}/state/{state}Replaces the Image resource.
Podravkaio.ImageApiupdateImagePUT /images/{id}Replaces the Image resource.
Podravkaio.IngredientApicreateIngredientPOST /ingredientsCreates a Ingredient resource.
Podravkaio.IngredientApideleteIngredientDELETE /ingredients/{id}Removes the Ingredient resource.
Podravkaio.IngredientApigetIngredientGET /ingredients/{id}Retrieves a Ingredient resource.
Podravkaio.IngredientApigetIngredientListGET /ingredientsRetrieves the collection of Ingredient resources.
Podravkaio.IngredientApigetIngredientListMetricsGET /ingredients/metricsRetrieves the metrics of Ingredient collection.
Podravkaio.IngredientApigetIngredientMetricsGET /ingredients/{id}/metricsRetrieves the metrics of Ingredient resource.
Podravkaio.IngredientApigetIngredientStateGET /ingredients/{id}/stateRetrieves a Ingredient resource.
Podravkaio.IngredientApisetIngredientStatePUT /ingredients/{id}/state/{state}Replaces the Ingredient resource.
Podravkaio.IngredientApiupdateIngredientPUT /ingredients/{id}Replaces the Ingredient resource.
Podravkaio.ProductApicreateProductPOST /productsCreates a Product resource.
Podravkaio.ProductApideleteProductDELETE /products/{id}Removes the Product resource.
Podravkaio.ProductApigetProductGET /products/{id}Retrieves a Product resource.
Podravkaio.ProductApigetProductListGET /productsRetrieves the collection of Product resources.
Podravkaio.ProductApigetProductListMetricsGET /products/metricsRetrieves the metrics of Product collection.
Podravkaio.ProductApigetProductMetricsGET /products/{id}/metricsRetrieves the metrics of Product resource.
Podravkaio.ProductApigetProductStateGET /products/{id}/stateRetrieves a Product resource.
Podravkaio.ProductApisetProductStatePUT /products/{id}/state/{state}Replaces the Product resource.
Podravkaio.ProductApiupdateProductPUT /products/{id}Replaces the Product resource.
Podravkaio.RecipeApicreateRecipePOST /recipesCreates a Recipe resource.
Podravkaio.RecipeApideleteRecipeDELETE /recipes/{id}Removes the Recipe resource.
Podravkaio.RecipeApigetRecipeGET /recipes/{id}Retrieves a Recipe resource.
Podravkaio.RecipeApigetRecipeListGET /recipesRetrieves the collection of Recipe resources.
Podravkaio.RecipeApigetRecipeListMetricsGET /recipes/metricsRetrieves the metrics of Recipe collection.
Podravkaio.RecipeApigetRecipeMetricsGET /recipes/{id}/metricsRetrieves the metrics of Recipe resource.
Podravkaio.RecipeApigetRecipeStateGET /recipes/{id}/stateRetrieves a Recipe resource.
Podravkaio.RecipeApisetRecipeStatePUT /recipes/{id}/state/{state}Replaces the Recipe resource.
Podravkaio.RecipeApiupdateRecipePUT /recipes/{id}Replaces the Recipe resource.
Podravkaio.TaxonomyApicreateContentTaxonPOST /{entity}/{id}/taxons/{bag}Creates a ContentTaxon resource.
Podravkaio.TaxonomyApicreateTaxonPOST /taxons/{taxonomy}Creates a Taxon resource.
Podravkaio.TaxonomyApicreateTaxonBagPOST /taxons-bagsCreates a TaxonBag resource.
Podravkaio.TaxonomyApicreateTaxonomyPOST /taxonomiesCreates a Taxonomy resource.
Podravkaio.TaxonomyApideleteContentTaxonDELETE /{entity}/{id}/taxons/{bag}/{id}Removes the ContentTaxon resource.
Podravkaio.TaxonomyApideleteTaxonDELETE /taxons/{taxonomy}/{id}Removes the Taxon resource.
Podravkaio.TaxonomyApideleteTaxonBagDELETE /taxons-bags/{id}Removes the TaxonBag resource.
Podravkaio.TaxonomyApideleteTaxonomyDELETE /taxonomies/{id}Removes the Taxonomy resource.
Podravkaio.TaxonomyApigetContentTaxonGET /{entity}/{id}/taxons/{bag}/{id}Retrieves a ContentTaxon resource.
Podravkaio.TaxonomyApigetContentTaxonListGET /{entity}/{id}/taxons/{bag}Retrieves the collection of ContentTaxon resources.
Podravkaio.TaxonomyApigetTaxonGET /taxons/{taxonomy}/{id}Retrieves a Taxon resource.
Podravkaio.TaxonomyApigetTaxonBagGET /taxons-bags/{id}Retrieves a TaxonBag resource.
Podravkaio.TaxonomyApigetTaxonBagListGET /taxons-bagsRetrieves the collection of TaxonBag resources.
Podravkaio.TaxonomyApigetTaxonListGET /taxons/{taxonomy}Retrieves the collection of Taxon resources.
Podravkaio.TaxonomyApigetTaxonomyGET /taxonomies/{id}Retrieves a Taxonomy resource.
Podravkaio.TaxonomyApigetTaxonomyListGET /taxonomiesRetrieves the collection of Taxonomy resources.
Podravkaio.TaxonomyApiupdateTaxonPUT /taxons/{taxonomy}/{id}Replaces the Taxon resource.
Podravkaio.TaxonomyApiupdateTaxonBagPUT /taxons-bags/{id}Replaces the TaxonBag resource.
Podravkaio.TaxonomyApiupdateTaxonomyPUT /taxonomies/{id}Replaces the Taxonomy resource.
Podravkaio.UserApideleteUserGroupItemDELETE /usergroups/{id}Removes the UserGroup resource.
Podravkaio.UserApigetUserGET /users/{id}Retrieves a User resource.
Podravkaio.UserApigetUserCollectionGET /usersRetrieves the collection of User resources.
Podravkaio.UserApigetUserGroupCollectionGET /usergroupsRetrieves the collection of UserGroup resources.
Podravkaio.UserApigetUserGroupItemGET /usergroups/{id}Retrieves a UserGroup resource.
Podravkaio.UserApigetUserListMetricsGET /users/metricsRetrieves the metrics of User collection.
Podravkaio.UserApigetUserMetricsGET /users/{id}/metricsRetrieves the metrics of User resource.
Podravkaio.UserApimembersAddUserGroupItemPUT /usergroups/{id}/members/{userId}Replaces the UserGroup resource.
Podravkaio.UserApimembersRemoveUserGroupItemDELETE /usergroups/{id}/members/{userId}Removes the UserGroup resource.
Podravkaio.UserApipostUserGroupCollectionPOST /usergroupsCreates a UserGroup resource.
Podravkaio.UserApiputUserPUT /users/{id}Replaces the User resource.
Podravkaio.UserApiputUserGroupItemPUT /usergroups/{id}Replaces the UserGroup resource.
Podravkaio.VideoApicreateVideoPOST /videosCreates a Video resource.
Podravkaio.VideoApideleteVideoDELETE /videos/{id}Removes the Video resource.
Podravkaio.VideoApigetVideoGET /videos/{id}Retrieves a Video resource.
Podravkaio.VideoApigetVideoListGET /videosRetrieves the collection of Video resources.
Podravkaio.VideoApigetVideoListMetricsGET /videos/metricsRetrieves the metrics of Video collection.
Podravkaio.VideoApigetVideoMetricsGET /videos/{id}/metricsRetrieves the metrics of Video resource.
Podravkaio.VideoApigetVideoStateGET /videos/{id}/stateRetrieves a Video resource.
Podravkaio.VideoApisetVideoStatePUT /videos/{id}/state/{state}Replaces the Video resource.
Podravkaio.VideoApiupdateVideoPUT /videos/{id}Replaces the Video resource.

Documentation for Models

Documentation for Authorization

oauth

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: oauth/v2/auth
  • Scopes:
    • read: read
    • read+write: read+write
0.2.0

6 years ago

0.1.0

6 years ago

0.0.2-a

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago