redmine-api | Use Redmine API with Javascript
kandi X-RAY | redmine-api Summary
kandi X-RAY | redmine-api Summary
Use Redmine API in browsers and NodeJS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Converts a query string into a query string .
- Base64 encoded string
- Detect if browser is browser .
- Extend target .
- Clones an object
redmine-api Key Features
redmine-api Examples and Code Snippets
Community Discussions
Trending Discussions on redmine-api
QUESTION
I'm trying to make android app - client for API Redmine. First I need is authentication, but I really don't understand how to implement it. (Using Retrofit) Documentation says only:
Most of the time, the API requires authentication. To enable the API-style authentication, you have to check Enable REST API in Administration -> Settings -> API. Then, authentication can be done in 2 different ways:
using your regular login/password via HTTP Basic authentication. using your API key which is a handy way to avoid putting a password in a script. The API key
may be attached to each request in one of the following way:
- passed in as a "key" parameter
- passed in as a username with a random password via HTTP Basic authentication
- passed in as a "X-Redmine-API-Key" HTTP header (added in Redmine 1.1.0)
You can find your API key on your account page ( /my/account ) when logged in, on the right-hand pane of the default layout.
I found this solution:
- HTTP Basic auth – http://login:password@redmine.org/issues.xml
- HTTP Basic auth with API token and login – http://login:RANDOM_KEY@redmine.org/issues.xml- (not >supported yet)
- HTTP Basic auth with API token – http://RANDOM_KEY:X@redmine.org/issues.xml
- Full token auth – http://redmine.org/issues.xml?key=RANDOM_KEY
But it doesn't works. All open-source clients for API Redmine are using something like own servers/domains or what - i don't understand. Examples:
...ANSWER
Answered 2021-Dec-14 at 22:12Redmine is an open source software package. As such, people install it on their own servers which makes their Redmine installation available on their own hostname (and possibly subpath).
As such, when implementing a Redmine client, you usually need a way for users of the client to configure the base URL of their Redmine server, such as https://www.redmine.org
or http://server.example.com:8080/redmine
.
All API requests you generate with your client are then relative to this base URL. But again, the base URL may be different for each user and need to be specified by them.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install redmine-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page