rest_marks_full v1.0.0
rest_marks_full
RestMarksFull - JavaScript client for rest_marks_full RestMarksFull writen in openapi specs This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- 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 rest_marks_full --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/rest_marks_full then install it via:
npm install YOUR_USERNAME/rest_marks_full --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 RestMarksFull = require('rest_marks_full');
var api = new RestMarksFull.DefaultApi()
var accountId = 56; // {Number} The account's id
var bookmarkId = 56; // {Number} The bookmarks's id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.accountAccountIdBookmarkBookmarkIdDelete(accountId, bookmarkId, callback);
Documentation for API Endpoints
All URIs are relative to http://localhost:8085/RESTMarksFull/api
Class | Method | HTTP request | Description |
---|---|---|---|
RestMarksFull.DefaultApi | accountAccountIdBookmarkBookmarkIdDelete | DELETE /account/{accountId}/bookmark/{bookmarkId} | Deletes an account |
RestMarksFull.DefaultApi | accountAccountIdBookmarkBookmarkIdGet | GET /account/{accountId}/bookmark/{bookmarkId} | Gets a bookmark given an account's id |
RestMarksFull.DefaultApi | accountAccountIdBookmarkBookmarkIdPut | PUT /account/{accountId}/bookmark/{bookmarkId} | Updates a bookmark |
RestMarksFull.DefaultApi | accountAccountIdBookmarkPost | POST /account/{accountId}/bookmark | Creates a bookmark |
RestMarksFull.DefaultApi | accountAccountIdDelete | DELETE /account/{accountId} | Deletes an account |
RestMarksFull.DefaultApi | accountAccountIdGet | GET /account/{accountId} | Gets an account |
RestMarksFull.DefaultApi | accountAccountIdPut | PUT /account/{accountId} | Updates an account |
RestMarksFull.DefaultApi | accountPost | POST /account | Creates an account |
RestMarksFull.DefaultApi | searchAccounts | GET /account | Gets Accounts |
RestMarksFull.DefaultApi | searchBookmarks | GET /account/{accountId}/bookmark | Gets all Bookmarks given an account's id |
Documentation for Models
- RestMarksFull.Account
- RestMarksFull.Accounts
- RestMarksFull.Bookmark
- RestMarksFull.Bookmarks
- RestMarksFull.Error
- RestMarksFull.ErrorMessage
Documentation for Authorization
All endpoints do not require authorization.
7 years ago