1.0.14 • Published 7 years ago

lpo_rest v1.0.14

Weekly downloads
-
License
Unlicense
Repository
-
Last release
7 years ago

lpo_rest

LpoRest - JavaScript client for lpo_rest Service web pour gérer les nichoirs d'un Adhérent LPO This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.14
  • Package version: 1.0.14
  • Build package: io.swagger.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 lpo_rest --save

git

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

    npm install YOUR_USERNAME/lpo_rest --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):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

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

var LpoRest = require('lpo_rest');

var defaultClient = LpoRest.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LpoRest.NichoirApi()

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

Documentation for API Endpoints

All URIs are relative to http://192.168.1.10:8080/web/app_dev.php

ClassMethodHTTP requestDescription
LpoRest.NichoirApibyProprietaireNichoirCollectionGET /nichoir/byProprietaireRetrieves the collection of Nichoir resources.
LpoRest.NichoirApideleteNichoirItemDELETE /nichoirs/{id}Removes the Nichoir resource.
LpoRest.NichoirApigetNichoirCollectionGET /nichoirsRetrieves the collection of Nichoir resources.
LpoRest.NichoirApigetNichoirItemGET /nichoirs/{id}Retrieves a Nichoir resource.
LpoRest.NichoirApipostNichoirCollectionPOST /nichoirsCreates a Nichoir resource.
LpoRest.NichoirApiputNichoirItemPUT /nichoirs/{id}Replaces the Nichoir resource.
LpoRest.OiseauApideleteOiseauItemDELETE /oiseaus/{id}Removes the Oiseau resource.
LpoRest.OiseauApigetOiseauCollectionGET /oiseausRetrieves the collection of Oiseau resources.
LpoRest.OiseauApigetOiseauItemGET /oiseaus/{id}Retrieves a Oiseau resource.
LpoRest.OiseauApipostOiseauCollectionPOST /oiseausCreates a Oiseau resource.
LpoRest.OiseauApiputOiseauItemPUT /oiseaus/{id}Replaces the Oiseau resource.
LpoRest.PhotooiseauApideletePhotooiseauItemDELETE /photooiseaus/{id}Removes the Photooiseau resource.
LpoRest.PhotooiseauApigetPhotooiseauCollectionGET /photooiseausRetrieves the collection of Photooiseau resources.
LpoRest.PhotooiseauApigetPhotooiseauItemGET /photooiseaus/{id}Retrieves a Photooiseau resource.
LpoRest.PhotooiseauApipostPhotooiseauCollectionPOST /photooiseausCreates a Photooiseau resource.
LpoRest.PhotooiseauApiputPhotooiseauItemPUT /photooiseaus/{id}Replaces the Photooiseau resource.
LpoRest.ProprietaireApideleteProprietaireItemDELETE /proprietaires/{id}Removes the Proprietaire resource.
LpoRest.ProprietaireApigetProprietaireCollectionGET /proprietairesRetrieves the collection of Proprietaire resources.
LpoRest.ProprietaireApigetProprietaireItemGET /proprietaires/{id}Retrieves a Proprietaire resource.
LpoRest.ProprietaireApipostProprietaireCollectionPOST /proprietairesCreates a Proprietaire resource.
LpoRest.ProprietaireApiputProprietaireItemPUT /proprietaires/{id}Replaces the Proprietaire resource.

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication
1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago