Page MenuHomeSealhub

get_collection_as.js
No OneTemporary

get_collection_as.js

const axios = require("axios");
module.exports = ({ collection, port, user }) => {
const session = user ? TEST_CONFIG.USERS[user].SESSION : {};
return axios
.get(
`http://localhost:${port}/api/v1/collections/${collection}`,
session
)
.then(({ data }) => data);
};

File Metadata

Mime Type
text/plain
Expires
Wed, May 7, 19:37 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
631115
Default Alt Text
get_collection_as.js (279 B)

Event Timeline