Thursday, January 9, 2020

Loopback3: Comprehensive AccessType, Property and End-point



Access TypePropertyVerbEnd point
READfindGET/model-name-plural
 findByIdGET/model-name-plural/{id}
 existsHEAD/model-name-plural/{id}
 existsREAD/model-name-plural/{id}/exists
 __get__relationNameGET/model-name-plural/{id}/relationName
 __findById__relationNameGET/model-name-plural/{id}/relationName/{fk}
 __count__relationNameGET/model-name-plural/{id}/relationname
 createChangeStreamGET/model-name-plural/change-stream
 createChangeStreamPOST/model-name-plural/change-stream
 countGET/model-name-plural/count
 findOneGET/model-name-plural/findOne
WRITEupsertPATCH/model-name-plural
 upsertPUT/model-name-plural
 createPOST/model-name-plural
 updateAttributesPATCH/model-name-plural/{id}
 updateAttributesPUT/model-name-plural/{id}
 deleteByIdDELETE/model-name-plural/{id}
 replaceByIdPOST/model-name-plural/{id}/replace
 __create__relationNamePOST/model-name-plural/{id}/relationName
 __delete__relationNameDELETE/model-name-plural/{id}/relationName
 __updateById__relationNamePUT/model-name-plural/{id}/relationName/{fk}
 __destroyById__relationNameDELETE/model-name-plural/{id}/relationName/{fk}
 replaceOrCreatePOST/model-name-plural/replaceOrCreate
 updateAllPOST/model-name-plural/update
 upsertWithWherePOST/model-name-plural/upsertWithWhere

No comments:

Post a Comment