Skip to content

Add raw hobolink data as a rest API #77

@dwreeves

Description

@dwreeves

[Note: Do this task in the dev branch]

The base output should be something like this:

return {
        'time_returned': pd.to_datetime()
        'data': df.to_dict(orient='records')
    )

Just do a direct call to get_live_hobolink_data for now.

For parameters, we want hours to be a parameter; default value should be 24. I think that's probably it for now and I'm not sure what else we'd parametrize. (Maybe we can add Hobolink metadata as an optional thing that can be returned?

Notably, this API should be added to Swagger, and it should also have documentation associated with it. Look into this: https://swagger.io/docs/specification/about/ We are using the OpenAPI specification. It's a bit longwinded and you don't need to read all of it; you will best be served by looking at examples e.g. in the Flasgger README. https://github.com/flasgger/flasgger

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataAnything related to databases, data management, stuff that is heavily focused in the data directory.good first issueGood for newcomerslow priorityIssues we are not currently focusing on, either because it has a lot of blockers or isn't important.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions