Skip to content

Commit 3667a8a

Browse files
authored
Update Service.md
1 parent 198cf00 commit 3667a8a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Service.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ The `Service` object has the following attributes defined:
77
* `active` - MUST be the Boolean variable representing whether this service is active or not. `true` for active, `false` for inactive. If this value is not set, the service SHOULD be assumed to be be active.
88
* `protocol` - MUST be the protocol by which this `Service` communicates
99
* `banner` - MUST be the banner that identifies this `Service`
10-
* `serviceDescriptors` - MUST be a key-value pairing of the `name` of a certain `ServiceDescriptor` IN THE PLURAL to a list of these objects (even if there is only one ServiceDescriptor). This allows a user to quickly access only the `ServiceDescriptor` desired.
10+
* `serviceDescriptors` - MUST be a key-value pairing of the `name` of a certain `ServiceDescriptor` IN THE SINGULAR to a list of these objects. This allows a user to quickly access only the `ServiceDescriptor` desired.
1111

1212
\* Required attributes
1313

1414
Example:
1515
```
16-
{"type":"Service","protocol":"http","banner":"Apache 1.0","serviceDescriptors":{"Directories":[{"type":"ServiceDescriptor","path":"/test","screenshot":"/root/screenshots/screenshot.jpg","code":"200","content-type":"text/html","length":"1024"}]}}
16+
{"type":"Service","protocol":"http","banner":"Apache 1.0","serviceDescriptors":{"httpUrl":[{"type":"ServiceDescriptor","path":"/test","screenshot":"/root/screenshots/screenshot.jpg","code":"200","content-type":"text/html","length":"1024"}]}}
1717
```
1818

1919
Pretty Printed:
@@ -23,10 +23,10 @@ Pretty Printed:
2323
"protocol":"http",
2424
"banner":"Apache 1.0",
2525
"serviceDescriptors":{
26-
"Paths":[
26+
"httpUrl":[
2727
{
2828
"type":"ServiceDescriptor",
29-
"name":"Path",
29+
"name":"httpUrl",
3030
"path":"/test",
3131
"screenshot":"/root/screenshots/screenshot.jpg",
3232
"code":"200",

0 commit comments

Comments
 (0)