debian/bullseye
|
Last change
on this file since 4d83fdc was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago |
|
Refactored mapservice
- mapservice is a connexion python webservice with openapi defined api
- mapservice-webclient is a angular app, consuming the openapi webservice mapservice
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [3a89adb] | 1 | # OpenAPI generated server
|
|---|
| 2 |
|
|---|
| 3 | ## Overview
|
|---|
| 4 | This server was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the
|
|---|
| 5 | [OpenAPI-Spec](https://openapis.org) from a remote server, you can easily generate a server stub. This
|
|---|
| 6 | is an example of building a OpenAPI-enabled Flask server.
|
|---|
| 7 |
|
|---|
| 8 | This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.
|
|---|
| 9 |
|
|---|
| 10 | ## Requirements
|
|---|
| 11 | Python 3.5.2+
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 | To run the server, please execute the following from the root directory:
|
|---|
| 15 |
|
|---|
| 16 | ```
|
|---|
| 17 | pip3 install -r requirements.txt
|
|---|
| 18 | python3 -m openapi_server
|
|---|
| 19 | ```
|
|---|
| 20 |
|
|---|
| 21 | and open your browser to here:
|
|---|
| 22 |
|
|---|
| 23 | ```
|
|---|
| 24 | http://localhost:8080/mapservice/v1/ui/
|
|---|
| 25 | ```
|
|---|
| 26 |
|
|---|
| 27 | Your OpenAPI definition lives here:
|
|---|
| 28 |
|
|---|
| 29 | ```
|
|---|
| 30 | http://localhost:8080/mapservice/v1/openapi.json
|
|---|
| 31 | ```
|
|---|
| 32 |
|
|---|
| 33 | To launch the integration tests, use tox:
|
|---|
| 34 | ```
|
|---|
| 35 | sudo pip install tox
|
|---|
| 36 | tox
|
|---|
| 37 | ```
|
|---|
| 38 |
|
|---|
| 39 | ## Running with Docker
|
|---|
| 40 |
|
|---|
| 41 | To run the server on a Docker container, please execute the following from the root directory:
|
|---|
| 42 |
|
|---|
| 43 | ```bash
|
|---|
| 44 | # building the image
|
|---|
| 45 | docker build -t openapi_server .
|
|---|
| 46 |
|
|---|
| 47 | # starting up a container
|
|---|
| 48 | docker run -p 8080:8080 openapi_server
|
|---|
| 49 | ```
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.