Popularity
5.7
Stable
Activity
0.0
Stable
57
4
17
Monthly Downloads: 328
Programming language: Elixir
License: BSD 3-clause "New" or "Revised" License
Tags:
Documentation
Latest version: v0.8.5
maru_swagger alternatives and similar packages
Based on the "Documentation" category.
Alternatively, view maru_swagger alternatives based on common mentions on social networks and blogs.
-
Xcribe
XCribe is a doc generator for Rest APIs built with Phoenix. The documentation is generated by the test specs. -
Magma
An integrated knowledge work environment for open source software projects with GPT4 as an LLM assistant.
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of maru_swagger or a related project?
README
MaruSwagger
Usage
GOTCHA: Please keep swagger
DSL out of version
!
def deps do
[ {:maru_swagger, github: "elixir-maru/maru_swagger"} ]
end
defmodule Router do
version "v1"
...
end
defmodule API do
use Maru.Router
use MaruSwagger
plug Plug.Logger
swagger at: "/swagger", # (required) the mount point for the URL
pretty: true, # (optional) should JSON be pretty-printed?
only: [:dev], # (optional) the environments swagger works
except: [:prod], # (optional) the environments swagger NOT works
force_json: true, # (optional) force JSON for all params instead of formData
swagger_inject: [ # (optional) this will be directly injected into the root Swagger JSON
host: "myapi.com",
basePath: "/api",
schemes: [ "http" ],
consumes: [ "application/json" ],
produces: [
"application/json",
"application/vnd.api+json"
]
]
mount Router
end
and then you can get json response from curl http://127.0.0.1:4000/swagger
.
open Swagger Petstore in your borwser and fill in http://127.0.0.1:4000/swagger
and enjoy maru_swagger.