flowviz
Version:
A framework which provides seamless integration with other phylogenetic tools and frameworks, while allowing workflow scheduling and execution, through the Apache Airflow workflow system.
26 lines (22 loc) • 606 B
JavaScript
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const EndpointSchema = new Schema(
{
name: { type: String, required: true },
description: { type: String, required: true },
path: { type: String, required: true },
method: { type: String, required: true },
headers: { type: Object, required: true },
body: { type: Object },
},
{ _id: false }
);
const ApiSchema = new Schema(
{
url: { type: String, required: true },
apiKey: { type: String, required: true },
endpoints: [EndpointSchema],
},
{ _id: false }
);
module.exports = ApiSchema;