Skip to content

Commit 02829b4

Browse files
initial commit, import endpoint code from old repo
0 parents  commit 02829b4

24 files changed

Lines changed: 735 additions & 0 deletions

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/conSys4Python.iml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conSys/__init__.py

Whitespace-only changes.

conSys/con_sys_api.py

Whitespace-only changes.

conSys/constants.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from enum import Enum
2+
3+
4+
class APITerms(Enum):
5+
"""
6+
Defines common endpoint terms used in the API
7+
"""
8+
API = 'api'
9+
SYSTEMS = 'systems'
10+
FOIS = 'featuresOfInterest'
11+
DATASTREAMS = 'datastreams'
12+
OBSERVATIONS = 'observations'
13+
TASKING = 'controls'
14+
SAMPLING_FEATURES = 'samplingFeatures'
15+
PROCEDURES = 'procedures'
16+
DEPLOYMENTS = 'deployments'
17+
PROPERTIES = 'properties'
18+
19+
20+
class SystemTypes(Enum):
21+
"""
22+
Defines the system types
23+
"""
24+
FEATURE = "Feature"
25+
26+
27+
class ObservationFormat(Enum):
28+
"""
29+
Defines common observation formats
30+
"""
31+
JSON = "application/om+json"
32+
XML = "application/om+xml"
33+
SWE_XML = "application/swe+xml"
34+
SWE_JSON = "application/swe+json"
35+
SWE_CSV = "application/swe+csv"
36+
SWE_BINARY = "application/swe+binary"

0 commit comments

Comments
 (0)