redmine-apis

0.1.0 • Public • Published

Redmine API

Use Redmine API in browsers and NodeJS

Install

npm install @chymz/redmine-api

Quick Sample

import { RedmineAPI } from '@chymz/redmine-api';

const api = new RedmineAPI('https://domain.com', { login: 'user', password: 'pass' });
// or
const api = new RedmineAPI('https://domain.com', { key: 'your_api_key' });

// You can pass all ressources name
api.query('issues')
  .then(results =>  {
    // ...
  })
  .catch(err => {
    // ...
  });

Docs

See here for documentation

Implemented

  • [x] API Requester class (docs)
  • [x] Issues (docs)
  • [x] Projects (docs)
  • [x] Time entries (docs)
  • [ ] Users
  • [ ] Enumerations
  • [ ] Custom fields
  • [ ] Versions
  • [ ] Issue Relations
  • [ ] Issue Statuses
  • [ ] Issue Categories
  • [ ] Attachments
  • [ ] Trackers
  • [ ] Groups
  • [ ] Roles
  • [ ] News
  • [ ] Wiki Pages
  • [ ] Queries

NodeJS & old browsers

You will need fetch() function to do requests on Redmine API. You can get a polyfill :

License

See LICENSE file

Readme

Keywords

Package Sidebar

Install

npm i redmine-apis

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

68.1 kB

Total Files

27

Last publish

Collaborators

  • fjeagle