Skip to content

Overall Structure for classes and API #4

@jeffreyliu

Description

@jeffreyliu

Recipe proposed structure

classdef Recipe(url):

def run():
    context.getMeta(url) # gets metadata from context service
    payload = recipe.harvest()
    try:
        archiveDB.upload(payload) #upload call also runs validation tests
    except validationError:
        # User needs to fix the recipe so that it passes the tests

def harvest():
    # main function, must return a payload and associated metadata

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions