This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created equivalents AST-based tests, which are blueprint-based.
- Loading branch information
1 parent
45a592c
commit 4cc180f
Showing
11 changed files
with
465 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
FORMAT: X-1A | ||
|
||
# Machines API | ||
|
||
# Group Machines | ||
|
||
# Machines collection [/machines] | ||
|
||
## Create a Machine [POST] | ||
+ Request (application/json) | ||
|
||
{ | ||
"type": "bulldozer", | ||
"name": "willy" | ||
} | ||
|
||
+ Response 202 (application/json) | ||
|
||
{ | ||
"mesage": "Accepted" | ||
} | ||
|
||
|
||
## Retreive all Machines [GET] | ||
|
||
+ Response 200 (application/json) | ||
|
||
[{ | ||
"_id": "52341870ed55224b15ff07ef", | ||
"type": "bulldozer", | ||
"name": "willy" | ||
}] | ||
|
||
# Machine [/machines/{name}] | ||
+ Parameters | ||
+ name (required,`willy`) | ||
|
||
## Update a Machine [PUT] | ||
|
||
+ Request (application/json) | ||
|
||
{ | ||
"name": "waldo" | ||
} | ||
|
||
+ Response 200 (application/json) | ||
|
||
{ | ||
"type": "bulldozer", | ||
"name": "waldo", | ||
"_id": "5229c6e8e4b0bd7dbb07e29c" | ||
} | ||
|
||
## Retrieve a Machine [GET] | ||
+ Parameters | ||
+ name (required,`waldo`) | ||
|
||
+ Response 200 (text/plain) | ||
|
||
{ | ||
"type": "bulldozer", | ||
"name": "waldo", | ||
"_id": "5229c6e8e4b0bd7dbb07e29c" | ||
} | ||
|
||
## Delete Message [DELETE] | ||
+ Parameters | ||
+ name (required,`waldo`) | ||
+ Response 204 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FORMAT: 1A | ||
|
||
# Machines API | ||
|
||
# Group Machines | ||
|
||
# Machines collection [/machines/{id}] | ||
+ Parameters | ||
- id (number, `1`) | ||
|
||
## Get Machines [GET] | ||
|
||
- Request (application/json) | ||
+ Parameters | ||
- id (number, `2`) | ||
|
||
- Response 200 (application/json; charset=utf-8) | ||
|
||
[ | ||
{ | ||
"type": "bulldozer", | ||
"name": "willy" | ||
} | ||
] | ||
|
||
- Request (application/json) | ||
+ Parameters | ||
- id (number, `3`) | ||
|
||
- Response 200 (application/json; charset=utf-8) | ||
|
||
[ | ||
{ | ||
"type": "bulldozer", | ||
"name": "willy" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# GET /message | ||
+ Response 200 (text/plain) | ||
|
||
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FORMAT: 1A | ||
|
||
# Machines API | ||
|
||
# Group Machines | ||
|
||
# Machines collection [/machines] | ||
|
||
## Get Machines [GET] | ||
|
||
- Response 200 (application/json; charset=utf-8) | ||
|
||
[ | ||
{ | ||
"type": "bulldozer", | ||
"name": "willy" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.