Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
webapi-parser
Advanced tools
webapi-parser
API Spec parser based on AMF. Currently supports RAML 0.8, RAML 1.0, OAS 2.0 and OAS 3.0(beta).
This project is a thin wrapper that exposes API Spec-related capabilities from AMF. It is written in Scala and offered in two versions: JavaScript and Java.
JavaScript | Java | |
---|---|---|
Installation | NPM | Gradle/Maven |
Object-oriented interface | "WebApi" Model | "WebApi" Model |
Package | ||
Examples | JavaScript examples | Java examples |
Developer Documentation | JavaScript Typedoc | Javadocs |
Install the npm package:
$ npm install webapi-parser
and require/reference as follows:
const wap = require('webapi-parser').WebApiParser
Usage examples are located in the examples directory.
Specify webapi-parser
as a dependency and set both MuleSoft and Jitpack repositories.
Gradle:
dependencies {
compile 'org.raml:webapi-parser:x.y.z'
}
...
repositories {
maven {
url "https://repository-master.mulesoft.org/nexus/content/repositories/releases"
}
maven {
url "https://jitpack.io"
}
mavenCentral()
}
Maven:
<dependency>
<groupId>org.raml</groupId>
<artifactId>webapi-parser</artifactId>
<version>X.Y.Z</version>
</dependency>
...
<repositories>
<repository>
<id>MuleSoftReleases</id>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/releases</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
To install snapshot versions set additional Sonatype snapshots repository.
Gradle:
...
repositories {
...
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
Maven:
...
<repositories>
...
<repository>
<id>SonatypeSnapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
Usage examples are located in the examples directory.
If you wish to contribute to this project, please review our Contribution Guidelines.
FAQs
WebApi Parser
The npm package webapi-parser receives a total of 88,801 weekly downloads. As such, webapi-parser popularity was classified as popular.
We found that webapi-parser demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.