mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 06:24:19 +00:00
🔧 Use correct version in swagger.json
This commit is contained in:
parent
9d644605d5
commit
cbe5783ac0
1 changed files with 2 additions and 1 deletions
|
@ -5,11 +5,12 @@ from apispec import APISpec
|
||||||
from apispec.ext.marshmallow import MarshmallowPlugin
|
from apispec.ext.marshmallow import MarshmallowPlugin
|
||||||
from apispec_webframeworks.flask import FlaskPlugin
|
from apispec_webframeworks.flask import FlaskPlugin
|
||||||
from api_schemas import *
|
from api_schemas import *
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
# Create an APISpec
|
# Create an APISpec
|
||||||
spec = APISpec(
|
spec = APISpec(
|
||||||
title="N.E.S.T.",
|
title="N.E.S.T.",
|
||||||
version="S2-1",
|
version=pkg_resources.get_distribution("nest_backend").version,
|
||||||
openapi_version="3.0.2",
|
openapi_version="3.0.2",
|
||||||
plugins=[FlaskPlugin(), MarshmallowPlugin()],
|
plugins=[FlaskPlugin(), MarshmallowPlugin()],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue