mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 13:26:47 +01:00
Update docs/greenfield-development.md
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
parent
6af3b4a51d
commit
34239dc383
@ -4,7 +4,7 @@
|
||||
* Always document all endpoints and model schemas in swagger. OpenAPI 3.0 is used as a specification, in JSON formatting, and is written manually. The specification is split to a file per controller and then merged by the server through a controller action at `/swagger/v1/swagger.json`.
|
||||
* All `JsonConverter` usage should be registered through attributes within the model itself.
|
||||
* `decimal` and `long` and other similar types should be serialized to a string and able to deserialize from the original type and a string.
|
||||
* Ensure that the correct security permissions are set on the endpoint. Create a new permission if none of the existing ones are suitable.
|
||||
* Ensure that the correct security permissions are set on the endpoint. Create a new permission if none of the existing ones are suitable.
|
||||
* Use HTTP methods according to REST principles when possible. This means:
|
||||
* `POST` - Create or custom action
|
||||
* `PUT` - Update full model
|
||||
|
Loading…
Reference in New Issue
Block a user