Access Type | Property | Verb | End point |
---|---|---|---|
READ | find | GET | /model-name-plural |
findById | GET | /model-name-plural/{id} | |
exists | HEAD | /model-name-plural/{id} | |
exists | READ | /model-name-plural/{id}/exists | |
__get__relationName | GET | /model-name-plural/{id}/relationName | |
__findById__relationName | GET | /model-name-plural/{id}/relationName/{fk} | |
__count__relationName | GET | /model-name-plural/{id}/relationname | |
createChangeStream | GET | /model-name-plural/change-stream | |
createChangeStream | POST | /model-name-plural/change-stream | |
count | GET | /model-name-plural/count | |
findOne | GET | /model-name-plural/findOne | |
WRITE | upsert | PATCH | /model-name-plural |
upsert | PUT | /model-name-plural | |
create | POST | /model-name-plural | |
updateAttributes | PATCH | /model-name-plural/{id} | |
updateAttributes | PUT | /model-name-plural/{id} | |
deleteById | DELETE | /model-name-plural/{id} | |
replaceById | POST | /model-name-plural/{id}/replace | |
__create__relationName | POST | /model-name-plural/{id}/relationName | |
__delete__relationName | DELETE | /model-name-plural/{id}/relationName | |
__updateById__relationName | PUT | /model-name-plural/{id}/relationName/{fk} | |
__destroyById__relationName | DELETE | /model-name-plural/{id}/relationName/{fk} | |
replaceOrCreate | POST | /model-name-plural/replaceOrCreate | |
updateAll | POST | /model-name-plural/update | |
upsertWithWhere | POST | /model-name-plural/upsertWithWhere |
Thursday, January 9, 2020
Loopback3: Comprehensive AccessType, Property and End-point
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment