-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from kbevers/prep-1.2
Preparation for 1.2.0 release
- Loading branch information
Showing
6 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
from webproj.utils import IntFloatConverter | ||
|
||
version = "1.1.0" | ||
version = "1.2.0" | ||
|
||
if "WEBPROJ_LIB" in os.environ: | ||
pyproj.datadir.append_data_dir(os.environ["WEBPROJ_LIB"]) | ||
|
@@ -25,14 +25,21 @@ | |
app, | ||
version=version, | ||
title="WEBPROJ", | ||
description="## API til koordinattransformationer\n\nAPIet " | ||
"__WEBPROJ__ giver adgang til at transformere " | ||
"multidimensionelle koordinatsæt. \n\nTil adgang " | ||
"benyttes Dataforsyningens brugeradgang som ved andre " | ||
"tjenester.\n\n[Versionshistorik](/webproj.txt)", | ||
description=( | ||
"## API til koordinattransformationer" | ||
"\n\n" | ||
"API'et __WEBPROJ__ giver adgang til at transformere " | ||
"multidimensionelle koordinatsæt." | ||
"\n\n" | ||
"Til adgang benyttes Dataforsyningens brugeradgang som ved andre " | ||
"tjenester." | ||
"\n\n" | ||
"[Versionshistorik](/webproj.txt)" | ||
), | ||
terms_url="https://dataforsyningen.dk/Vilkaar", | ||
contact="[email protected]", | ||
license="MIT License", | ||
license_url="https://raw.githubusercontent.com/SDFIdk/WEBPROJ/master/LICENSE", | ||
) | ||
|
||
_DATA = Path(__file__).parent / Path("data.json") | ||
|
@@ -377,3 +384,15 @@ def get(self, src, dst, v1, v2, v3=None, v4=None): | |
abort(404, message=error) | ||
|
||
return {"v1": v1, "v2": v2, "v3": v3, "v4": v4} | ||
|
||
|
||
@api.route("/v1.2/info/") | ||
class Info(Resource): | ||
def get(self): | ||
""" | ||
Retrieve information about the running instance of WEBPROJ and it's constituent components. | ||
""" | ||
return { | ||
"webproj_version": version, | ||
"proj_version": pyproj.__proj_version__, | ||
} |