
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@rgwch/mayan_edms-api
Advanced tools
This is a nodejs library to access the API of the Mayan EDMS. It tries to simplify some common tasks when using automated services to work with Mayan.
import {mayan} from '@rgwch/mayan_edms-api'
mayan.connect("https://some.mayan.server","username","password", false).then(result)=>{
if(result){
console.log("We are connected. Use API now")
}
})
All methods are async. Connect should be the first call. On success, it receives a token which is stored internally and used for all subsequent API calls. Note that the user who connects must have specific rights for every method in the fairly fine-grained permission system of Mayan EDMS. I recommend to test first as admin user and change to the real user only if that is successful.
You can use the provided test/docker-compose.yml for a quick test installation of Mayan EDMS
Documentation, see docs
git clone https://github.com/rgwch/mayan_edms-api
cd mayan_edms-api
npm i
npm run build
There's only an integration test.
Before first run you must initialize a Mayan EDMS for testing:
cd test
docker-compose up -d
# or: docker compose up -d
Then navigate to [http://localhost:5656/]
Login as admin with the indicated password. Go to the "User" Menu in the right upper part of the window. Change the password to "testuser".
Then you can leave the Mayan UI and run the tests
npm test
docker-compose down
Later runs of docker-compose up -d
will be much faster and no initialization is needed.
FAQs
API access for the Mayan EDMS system
We found that @rgwch/mayan_edms-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.