OpenAPI Specification
Convert scan results into an OpenAPI Specification document. The generated spec can be imported into Swagger UI, Postman, Insomnia, and similar tools for API documentation, testing, or mock generation.
Noir supports both OAS 2.0 (Swagger) and OAS 3.0.
Usage
OAS 3.0 (recommended):
noir -b . -f oas3
OAS 2.0:
noir -b . -f oas2
Example Output
Follows the standard OpenAPI structure: info holds metadata, and paths maps each URL to its HTTP methods with parameters and responses. Paste the output into the Swagger Editor to visualize it right away.
{
"openapi": "3.0.0",
"info": {
"title": "Generated by Noir",
"version": ""
},
"paths": {
"/": {
"get": {
"responses": {
"200": {
"description": "Successful response"
}
},
"parameters": [
{
"name": "x-api-key",
"in": "header"
}
]
}
},
"/query": {
"post": {
"responses": {
"200": {
"description": "Successful response"
}
},
"parameters": [
{
"name": "my_auth",
"in": "query"
},
{
"name": "query",
"in": "formData"
}
]
}
}
}
}