Commit daabb16e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

jsonnet looks better for syntax highlighting

parent 781f86aa
Pipeline #50 skipped
......@@ -134,14 +134,14 @@ The purpose of this field is to signify the status of the action just performed.
### Example success
For a brief status message one could use...
```json
```jsonnet
{
status: "success"
}
```
For a full status message one could use...
```json
```jsonnet
{
status: "success",
message: "Record 17 deleted"
......@@ -149,7 +149,7 @@ For a full status message one could use...
```
For a successful status which returns records...
```json
```jsonnet
{
status: "success",
data: {
......@@ -162,7 +162,7 @@ For a successful status which returns records...
```
For a successful status which returns a single result...
```json
```jsonnet
{
status: "success",
data: {
......@@ -177,7 +177,7 @@ For a successful status which returns a single result...
### Example for a fail
Failures must have a mesasge field...
```json
```jsonnet
{
status: "fail",
message: "System failure, please try again later"
......@@ -185,7 +185,7 @@ Failures must have a mesasge field...
```
Or it can be verbose...
```json
```jsonnet
{
status: "fail",
message: "System failure, please try again later",
......@@ -202,7 +202,7 @@ Or it can be verbose...
### Example for a error
An error can be brief...
```json
```jsonnet
{
status: "error",
message: "The contents of the 'subject' field is invalid"
......@@ -210,7 +210,7 @@ An error can be brief...
```
Or it can be verbose...
```json
```jsonnet
{
status: "error",
message: "Input failed validation",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment