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

Orca Server API #1

Merged
merged 22 commits into from
Jun 2, 2015
Merged

Orca Server API #1

merged 22 commits into from
Jun 2, 2015

Conversation

jiffyclub
Copy link
Member

Add a Flask server that can return info from an Orca spec. Endpoints include getting summary statistics about tables and columns, seeing the source code of registered functions, and performing groupby-aggregations on tables.

The full list of routes is:

/schema
/tables
/tables/<table_name>/preview
/tables/<table_name>/describe
/tables/<table_name>/definition
/tables/<table_name>/csv
/tables/<table_name>/groupbyagg
/tables/<table_name>/columns
/tables/<table_name>/columns/<col_name>/definition
/tables/<table_name>/columns/<col_name>/describe
/tables/<table_name>/columns/<col_name>/csv
/injectables
/injectables/<inj_name>/repr
/injectables/<inj_name>/definition
/broadcasts
/broadcasts/<cast_name>/<onto_name>/definition
/steps
/steps/<step_name>/definition

These are documented in the server file.

@fscottfoti
Copy link
Contributor

@cvanegas this is the start of the Orca json api.

@jiffyclub
Copy link
Member Author

This now includes a CLI to start the server, but before a release I'll need to update the CLI to accept options for tuning the server like whether debug mode is on, what port to use, etc.

jiffyclub added a commit that referenced this pull request Jun 2, 2015
@jiffyclub jiffyclub merged commit eacc3e4 into master Jun 2, 2015
@jiffyclub jiffyclub deleted the orca-api branch June 2, 2015 21:06
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