Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial TAP-like implementation. #6

Merged
merged 1 commit into from Mar 28, 2016
Merged

Initial TAP-like implementation. #6

merged 1 commit into from Mar 28, 2016

Conversation

brianv0
Copy link
Contributor

@brianv0 brianv0 commented Mar 22, 2016

VOTable-like json
VOTable XML output through template
Refactor Field Helper code

VOTable-like json
VOTable XML output through template
Refactor Field Helper code
Use engineFactory
def getDb():
'''Lists supported versions for /db.'''
@app.route('/')
def application_root():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With all of these function name changes (getRoot -> application_root, etc.) I don't see any changes to the client code as part of this ticket. Are there any users of this service yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the function names are inconsequential, I was just trying to do some PEP8 cleanup. The reason why they are inconsequential is because the decorator above the name, @app.route, registers the function at import time to the Flask framework. The Flask framework handles incoming HTTP requests, finds out routes match (/db in this case), and dispatches to the method. So Flask, in effect, is the only client to these methods and it doesn't really care about the method name (except for debugging purposes)

However, the HTTP route did, in fact, change. SUI is the main consumer of the HTTP interface and they've been notified. The routes changed to more closely adhere to the guidelines in the TAP interface.

@brianv0 brianv0 merged commit 172dcd1 into master Mar 28, 2016
@ktlim ktlim deleted the tickets/DM-5318 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants