Commit deb66b51 authored by Pelayo Torres's avatar Pelayo Torres
Browse files

REL 19 New Routing_Info_API

parent 556e13ce
Loading
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
.dockerignore
.gitignore
.openapi-generator-ignore
.travis.yml
Dockerfile
README.md
@@ -56,7 +55,6 @@ capif_routing_info/models/uncertainty_ellipsoid.py
capif_routing_info/models/version.py
capif_routing_info/openapi/openapi.yaml
capif_routing_info/test/__init__.py
capif_routing_info/test/test_default_controller.py
capif_routing_info/typing_utils.py
capif_routing_info/util.py
requirements.txt
+3 −3
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ To run the server, please execute the following from the root directory:

```
pip3 install -r requirements.txt
python3 -m capif_routing_info
python3 -m openapi_server
```

and open your browser to here:
@@ -42,8 +42,8 @@ To run the server on a Docker container, please execute the following from the r

```bash
# building the image
docker build -t capif_routing_info .
docker build -t openapi_server .

# starting up a container
docker run -p 8080:8080 capif_routing_info
docker run -p 8080:8080 openapi_server
```
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
import connexion
from typing import Dict
from typing import Tuple
from typing import Union

from capif_routing_info.models.problem_details import ProblemDetails  # noqa: E501
from capif_routing_info.models.routing_info import RoutingInfo  # noqa: E501
from capif_routing_info import util


def service_apis_service_api_id_get(service_api_id, aef_id, supp_feat=None):  # noqa: E501
+1 −0
Original line number Diff line number Diff line
from typing import List
+2 −1
Original line number Diff line number Diff line
from capif_routing_info.models.base_model import Model
from connexion.jsonifier import JSONEncoder

from capif_routing_info.models.base_model import Model


class CustomJSONEncoder(JSONEncoder):
    include_nulls = False
Loading