Skip to content

Commit f8ca664

Browse files
authored
Merge pull request #83 from Teester/rearrange
Move api v1 and v2 related files into their own directories
2 parents b92329f + 5125305 commit f8ca664

14 files changed

Lines changed: 17 additions & 17 deletions
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from flask import Blueprint, request, json, Response
22

3-
from entityshape.shape import Shape
4-
from entityshape.compareshape import CompareShape
3+
from entityshape.api_v1.shape import Shape
4+
from entityshape.api_v1.compareshape import CompareShape
55

66
api_v1 = Blueprint('api_v1', __name__,)
77

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from flask import Blueprint, request, json, Response
22

3-
from entityshape.getjsonld import JSONLDShape
4-
from entityshape.comparejsonld import CompareJSONLD
3+
from entityshape.api_v2.getjsonld import JSONLDShape
4+
from entityshape.api_v2.comparejsonld import CompareJSONLD
55

66

77
api_v2 = Blueprint('api_v2', __name__,)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import requests
88
from requests import Response
99

10-
from entityshape.compareproperties import CompareProperties
11-
from entityshape.comparestatements import CompareStatements
10+
from entityshape.api_v2.compareproperties import CompareProperties
11+
from entityshape.api_v2.comparestatements import CompareStatements
1212

1313

1414
class CompareJSONLD:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from entityshape.utilities import Utilities
1+
from entityshape.api_v2.utilities import Utilities
22

33

44
class CompareProperties:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Tuple, Any
22

3-
from entityshape.utilities import Utilities
3+
from entityshape.api_v2.utilities import Utilities
44

55

66
class CompareStatements:

entityshape/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from flask import Flask
55
from flask_cors import CORS
66

7-
from entityshape.api_v1_blueprint import api_v1
8-
from entityshape.api_v2_blueprint import api_v2
7+
from entityshape.api_v1.api_v1_blueprint import api_v1
8+
from entityshape.api_v2.api_v2_blueprint import api_v2
99

1010
app = Flask(__name__)
1111
CORS(app)

0 commit comments

Comments
 (0)