Manifest
Stub manifest documentation
Description:
version
- version of manifesttype
- for type of object declarationrules
- block for rules groupingwhen
- conditional statementrequest
- request setuppath
- endpoint pathmethod
- endpoint methodrelative
- relative to current folder path(calculates from stubs folder)
response
- this block was added to change a declaration solution related to foldersstatus
- http status of responseheaders
- response headersbody
- response bodyfile
- response body from the file contentsdelay
- responsible for network latency simulationtables
- source of data for templating (For more info, please follow next link)
callback
- post action hook
More info about each field could be found in next.
Relative request declaration
relative
parameter allows you to declare endpoints relative to the content root.
For example: If you create a file in the following user/groups
folder, set relative
to true
and create the following manifest:
Next endpoint will be generated user/groups/report/1
.
Default values of Stub
version
v1.3
type
Stub
request.path
/
request.method
GET
request.relative
true
Different styles of manifest
The following declaration styles are allowed
First
Second
Third
Fourth
More info
Last updated