API reference
API routes
Response
{
total_rows: 5,
offset: 0,
rows: [
{
id: '36f300831510a53137c3670120000183',
key: '36f300831510a53137c3670120000183',
value: {
rev: '1-aa6c1957ef8fe2c6f6617a3f562d6de6',
},
doc: {
_id: '36f300831510a53137c3670120000183',
_rev: '1-aa6c1957ef8fe2c6f6617a3f562d6de6',
seller: 'admin',
name: 'Banana',
description: 'A curvy yellow fruit.',
images: [
'https://image.shutterstock.com/image-photo/bananas-grapes-600w-518328943.jpg',
],
price: {
amount: 299,
currency: 'sgd',
},
},
},
{...},
],
}
Response
{
docs: [
{
_id: '36f300831510a53137c3670120000183',
_rev: '1-aa6c1957ef8fe2c6f6617a3f562d6de6',
seller: 'admin',
name: 'Banana',
description: 'A curvy yellow fruit.',
images: [
'https://image.shutterstock.com/image-photo/bananas-grapes-600w-518328943.jpg',
],
price: {
amount: 299,
currency: 'sgd',
},
},
{...},
],
}
Response
{
docs: [
{
_id: '36f300831510a53137c3670120000183',
_rev: '1-aa6c1957ef8fe2c6f6617a3f562d6de6',
seller: 'admin',
name: 'Banana',
description: 'A curvy yellow fruit.',
images: [
'https://image.shutterstock.com/image-photo/bananas-grapes-600w-518328943.jpg',
],
price: {
amount: 299,
currency: 'sgd',
},
},
{...},
],
}
Parameters
- name (
required): A unique name for the user, e.g. their email address. - password (
required): The user's password.
