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

REST APIs for files #954

Closed
dfaller opened this issue Sep 7, 2017 · 0 comments
Closed

REST APIs for files #954

dfaller opened this issue Sep 7, 2017 · 0 comments

Comments

@dfaller
Copy link
Contributor

dfaller commented Sep 7, 2017

We need some REST APIs for retrieving general files:

  1. General file API at /files/

    • query params: started, ended, time_field (like from /products/), and file_name
    • move source_started and source_ended to the list of geospatial fields (making it apply to source files as well)
    • response should include all fields not specific to sources or products, including file_type
  2. Job input file API at /jobs/{id}/input_files/

    • all inputs files for the given job, use the JobInputFile model, fall back to job_data if no JobInputFile models returned
    • same query params from (1.) plus job_input which filters on the job_input field in JobInputFile
    • response should be the same as (1.)
  3. Recipe input file API at /recipes/{id}/input_files/

    • all inputs files for the given recipe, use the RecipeInputFile model, fall back to recipe_data if no RecipeInputFile models returned
    • same query params from (1.) plus recipe_input which filters on the recipe_input field in RecipeInputFile
    • response should be the same as (1.)

All 3 APIs should use a general "filter_files" method on the ScaleFileManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants