Update readme.md
This commit is contained in:
parent
b76a8296a8
commit
35799245ed
@ -18,7 +18,7 @@ mainserverObject.server(
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
Below you can see how responses from http/call-function hadless into reponse at scheme:
|
Below you can see how responses from http/call-function hadless into reponse at scheme:
|
||||||

|

|
||||||
Http data or Data from call method gets into pre_execution binary function where checks data: syntax/missed or no: if all successfuly data get into Session/Group/Method execute method else throwing error.
|
Http data or Data from call method gets into pre_execution binary function where checks data: syntax/missed or no: if all successfuly data get into Session/Group/Method execute method else throwing error.
|
||||||
### Before work.
|
### Before work.
|
||||||
Before work you must install this package:
|
Before work you must install this package:
|
||||||
@ -170,7 +170,7 @@ After creating class you must create object of njsbacker.Method:
|
|||||||
var exampleMethod = new ExampleMethod('example', '/example', {
|
var exampleMethod = new ExampleMethod('example', '/example', {
|
||||||
text : {
|
text : {
|
||||||
required : true,
|
required : true,
|
||||||
type : backend.types.string,
|
type : njsbacker.types.string,
|
||||||
min_length : 1,
|
min_length : 1,
|
||||||
max_length : 255
|
max_length : 255
|
||||||
}
|
}
|
||||||
@ -438,4 +438,4 @@ server.server('/api/v1').listen(8080, async (err) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
You can show example code in file **codeExample.js**
|
You can show example code in file **codeExample.js**
|
||||||
|
Loading…
Reference in New Issue
Block a user