Socket
Socket
Sign inDemoInstall

axios-redmine2

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    axios-redmine2

axios-redmine2 is a nodejs library which supports 100% features of Redmine's REST API. Support nodejs8+


Version published
Maintainers
1
Install size
478 kB
Created

Readme

Source

axios-redmine

npm package

Build Status Greenkeeper badge codecov Mergify Status

axios-redmine is a nodejs library that supports 100% of the Redmine's REST API's features.

axios-redmine is a node's library that supports 100% features of Redmine's REST API.

Installation

To install axios-redmine, simply:

npm install axios-redmine

Usage

'use strict()'
const Redmine = require('../lib/redmine')

// protocol required in Hostname, supports both HTTP and HTTPS
const hostname = process.env.REDMINE_HOST || 'https://docker.for.mac.host.internal'
const config = {
  apiKey:
    process.env.REDMINE_APIKEY || 'b7ce4d8d3865e79a75da8dba39bc801c12e36488',
  rejectUnauthorized: process.env.REJECT_UNAUTHORIZED
}

const redmine = new Redmine(hostname, config)

/**
 * Dump issue
 */
const dumpIssue = function (issue) {
  console.log('Dumping issue:')
  for (const item in issue) {
    console.log('  ' + item + ': ' + JSON.stringify(issue[item]))
  }
}

redmine
  .issues({ limit: 2 })
  .then(response => {
    for (const i in response.data.issues) {
      dumpIssue(response.data.issues[i])
    }
    console.log('total_count: ', response.data.total_count)
  })
  .catch(err => {
    console.log(err)
  })

Supported features for Redmine REST API

ResourceStatusAvailabilitySupported
IssuesStable1.0
ProjectsStable1.0
Project MembershipsAlpha1.4
UsersStable1.1
Time EntriesStable1.1
NewsPrototype1.1
Issue RelationsAlpha1.3
VersionsAlpha1.3
Wiki PagesAlpha2.2
QueriesAlpha1.3
AttachmentsBeta1.3
Issue StatusesAlpha1.3
TrackersAlpha1.3
EnumerationsAlpha2.2
Issue CategoriesAlpha1.3
RolesAlpha1.4
GroupsAlpha2.1
Custom FieldsAlpha2.4
SearchAlpha3.3N/A

Notice

  • axios-redmine only supports using the JSON format.

Keywords

FAQs

Last updated on 03 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc