issues
search
include-davis
/
Include-CMS
In-house CMS system for future clients to use and deploy for free
MIT License
1
stars
1
forks
source link
API: createCollectionItem - lib
#30
Closed
Austin2Shih
closed
5 months ago
Austin2Shih
commented
6 months ago
[ ] write async createCollectionItem(collection, data)
within _datalib/collections
return the following format: {ok: boolean, body: body || null, error: error || null}
If successful, then fetch the created collection item and return it in body
Use try/catch and the custom Errors defined in _utils/response/Errors
Feel free to create new Error types if you see fit (following error code conventions for HTTP)