Nuclos REST guidelines: GET, POST, PUT, DELETE, idempotent, path, PathParam, RVO, service implementation. |
Language: Deutsch · English
Conventions for your own REST services – HTTP verbs, path design and a code example.
Auf dieser Seite |
Guidelines for implementing your own REST services in Nuclos.
| Verb | Meaning |
|---|---|
| GET | fetch data – no change in the DB. |
| POST | create an object in the DB. |
| PUT | modify an object (idempotent; a second PUT creates no new record). |
| DELETE | delete one or more objects. |
POST /tree
PUT /tree/{treeid}
DELETE /tree/{treeid}/branch/{branchid} |
Especially at the start, avoid superfluous segments (e.g. not /neudazu/botanik/heinzmueller/pflanzen/tree/).
POST /tree |