Handle reverse engineering of synonyms with / in the name. Fixes #1622

pull/3/head
Surinder Kumar 2016-10-14 16:01:55 -07:00 committed by Dave Page
parent 2d39b5fb41
commit dd6a69d845
1 changed files with 6 additions and 1 deletions

View File

@ -149,8 +149,13 @@ class SynonymView(PGChildNodeView):
{'type': 'int', 'id': 'did'},
{'type': 'int', 'id': 'scid'}
]
# If URL has an identifier containing slash character '/'
# into the URI, then set param type to path. Because if
# param name contains '/' in syid, it gets confused and
# wrong url is generated.
# Reference:- http://flask.pocoo.org/snippets/76/
ids = [
{'type': 'string', 'id': 'syid'}
{'type': 'path', 'id': 'syid'}
]
operations = dict({