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

jsonnet looks better for syntax highlighting

parent 781f86aa
...@@ -134,14 +134,14 @@ The purpose of this field is to signify the status of the action just performed. ...@@ -134,14 +134,14 @@ The purpose of this field is to signify the status of the action just performed.
### Example success ### Example success
For a brief status message one could use... For a brief status message one could use...
```json ```jsonnet
{ {
status: "success" status: "success"
} }
``` ```
For a full status message one could use... For a full status message one could use...
```json ```jsonnet
{ {
status: "success", status: "success",
message: "Record 17 deleted" message: "Record 17 deleted"
...@@ -149,7 +149,7 @@ For a full status message one could use... ...@@ -149,7 +149,7 @@ For a full status message one could use...
``` ```
For a successful status which returns records... For a successful status which returns records...
```json ```jsonnet
{ {
status: "success", status: "success",
data: { data: {
...@@ -162,7 +162,7 @@ For a successful status which returns records... ...@@ -162,7 +162,7 @@ For a successful status which returns records...
``` ```
For a successful status which returns a single result... For a successful status which returns a single result...
```json ```jsonnet
{ {
status: "success", status: "success",
data: { data: {
...@@ -177,7 +177,7 @@ For a successful status which returns a single result... ...@@ -177,7 +177,7 @@ For a successful status which returns a single result...
### Example for a fail ### Example for a fail
Failures must have a mesasge field... Failures must have a mesasge field...
```json ```jsonnet
{ {
status: "fail", status: "fail",
message: "System failure, please try again later" message: "System failure, please try again later"
...@@ -185,7 +185,7 @@ Failures must have a mesasge field... ...@@ -185,7 +185,7 @@ Failures must have a mesasge field...
``` ```
Or it can be verbose... Or it can be verbose...
```json ```jsonnet
{ {
status: "fail", status: "fail",
message: "System failure, please try again later", message: "System failure, please try again later",
...@@ -202,7 +202,7 @@ Or it can be verbose... ...@@ -202,7 +202,7 @@ Or it can be verbose...
### Example for a error ### Example for a error
An error can be brief... An error can be brief...
```json ```jsonnet
{ {
status: "error", status: "error",
message: "The contents of the 'subject' field is invalid" message: "The contents of the 'subject' field is invalid"
...@@ -210,7 +210,7 @@ An error can be brief... ...@@ -210,7 +210,7 @@ An error can be brief...
``` ```
Or it can be verbose... Or it can be verbose...
```json ```jsonnet
{ {
status: "error", status: "error",
message: "Input failed validation", message: "Input failed validation",
......
Supports Markdown
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