evrythng
Version:
Official Javascript SDK for the EVRYTHNG API.
66 lines (58 loc) • 940 B
JavaScript
import * as data from './data'
export default {
ok: {
status: 200,
body: {}
},
noContent: {
status: 204,
body: null
},
error: {
generic: {
status: 400,
body: {
status: 400,
errors: ['Generic error']
}
}
},
access: {
operator: {
body: {
actor: {
type: 'operator',
id: data.operatorTemplate.id
},
apiKey: data.apiKey
}
},
application: {
body: {
project: data.projectTemplate.id,
actor: {
type: 'app',
id: data.applicationTemplate.id
}
}
}
},
operator: {
one: {
body: data.operatorTemplate
}
},
application: {
one: {
body: data.applicationTemplate
}
},
entity: {
one: {
body: data.entityTemplate
},
multiple: {
body: [data.entityTemplate, data.entityTemplate]
}
}
}