Skip to content

Commit

Permalink
reorganize directory hierarchy:
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Nally committed Sep 16, 2015
1 parent 80a6311 commit ad56cbf
Show file tree
Hide file tree
Showing 55 changed files with 41 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var baseAPI = require('./../../../js_sdk/base_api')
var baseAPI = require('./../../../js/base_api')

var exports = function() {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var baseAPI = require('./../../../js_sdk/base_api')
var baseAPI = require('./../../../js/base_api')

var exports = function() {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rapier.python_sdk.base_api import BaseAPI, BaseEntity
from rapier.py.base_api import BaseAPI, BaseEntity

class HelloMessageAPI(BaseAPI):

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rapier.test.python_sdk.hello_message.hello_world_api import api
from rapier.py.test.hello_message.hello_message_api import api

def main():
rslt = api.retrieve_well_known_resource('http://localhost:3000/message')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rapier.test.python_sdk.todo_list.todo_list_api import api, Item, Collection, TodoList
from rapier.py.test.todo_list.todo_list_api import api, Item, Collection, TodoList

def test_objects():
items = Collection('http://localhost:3001/to-dos/items')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection
from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

class API(BaseAPI):
def well_known_URLs(self):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions test/gen_js_client/run-tests.sh

This file was deleted.

8 changes: 0 additions & 8 deletions test/gen_python_client/run-tests.sh

This file was deleted.

9 changes: 0 additions & 9 deletions test/gen_swagger/run-tests.sh

This file was deleted.

Empty file.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gen_python_client/gen_client.py → util/gen_py_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def client_from_rapier(self, filename= None):
well_known_urls = [url for urls in well_known_urls for url in urls]

print '''
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection
from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection
class API(BaseAPI):
def well_known_URLs(self):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions util/test/gen_js_sdk/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
ROOT_DIR=$( cd "$( dirname "$DIR/../../../../" )" && pwd)
cd $ROOT_DIR

python util/gen_js_sdk.py util/test/hello-message.yaml > util/test/gen_js_sdk/hello-message.js
python util/gen_js_sdk.py util/test/todo-list.yaml > util/test/gen_js_sdk/todo-list.js
python util/gen_js_sdk.py util/test/dog-tracker.yaml > util/test/gen_js_sdk/dog-tracker.js
python util/gen_js_sdk.py util/test/property-tracker.yaml > util/test/gen_js_sdk/property-tracker.js
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

class API(BaseAPI):
def well_known_URLs(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

class API(BaseAPI):
def well_known_URLs(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

class API(BaseAPI):
def well_known_URLs(self):
Expand Down
8 changes: 8 additions & 0 deletions util/test/gen_py_sdk/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
ROOT_DIR=$( cd "$( dirname "$DIR/../../../../" )" && pwd)
cd $ROOT_DIR
echo $ROOT_DIR
python util/gen_py_sdk.py util/test/hello-message.yaml > util/test/gen_py_sdk/hello-message.py
python util/gen_py_sdk.py util/test/todo-list.yaml > util/test/gen_py_sdk/todo-list.py
python util/gen_py_sdk.py util/test/dog-tracker.yaml > util/test/gen_py_sdk/dog-tracker.py
python util/gen_py_sdk.py util/test/property-tracker.yaml > util/test/gen_py_sdk/property-tracker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rapier.python_sdk.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

from rapier.py.base_api import BaseAPI, BaseResource, BaseEntity, BaseCollection

class API(BaseAPI):
def well_known_URLs(self):
Expand Down
10 changes: 10 additions & 0 deletions util/test/gen_swagger/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
echo $DIR
ROOT_DIR=$( cd "$( dirname "$DIR/../../../../../" )" && pwd)
cd $ROOT_DIR
echo $ROOT_DIR
python rapier/util/gen_swagger.py rapier/util/test/hello-message.yaml > rapier/util/test/gen_swagger/swagger-hello-message.yaml
python rapier/util/gen_swagger.py rapier/util/test/todo-list.yaml > rapier/util/test/gen_swagger/swagger-todo-list.yaml
python rapier/util/gen_swagger.py rapier/util/test/dog-tracker.yaml > rapier/util/test/gen_swagger/swagger-dog-tracker.yaml
python rapier/util/gen_swagger.py rapier/util/test/property-tracker.yaml > rapier/util/test/gen_swagger/swagger-property-tracker.yaml
python rapier/util/gen_swagger.py rapier/util/test/spec-hub.yaml > rapier/util/test/gen_swagger/swagger-spec-hub.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ad56cbf

Please sign in to comment.