@cparra/apexdocs 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -66
- package/docs/Main/nspc.GroupedClass.md +10 -0
- package/docs/Main/{SampleClass.md → nspc.SampleClass.md} +21 -18
- package/docs/Misc-Group/nspc.AnotherInterface.md +1 -0
- package/docs/Misc-Group/{ChildClass.md → nspc.ChildClass.md} +4 -4
- package/docs/Misc-Group/{GrandparentClass.md → nspc.GrandparentClass.md} +1 -1
- package/docs/Misc-Group/{InterfaceWithInheritance.md → nspc.InterfaceWithInheritance.md} +3 -3
- package/docs/Misc-Group/nspc.MemberGrouping.md +13 -0
- package/docs/Misc-Group/{ParentClass.md → nspc.ParentClass.md} +2 -2
- package/docs/Misc-Group/{Reference1.md → nspc.Reference1.md} +1 -1
- package/docs/Misc-Group/nspc.Reference2.md +12 -0
- package/docs/Misc-Group/{Reference3.md → nspc.Reference3.md} +1 -1
- package/docs/Misc-Group/{Reference4.md → nspc.Reference4.md} +1 -1
- package/docs/Misc-Group/{Reference5.md → nspc.Reference5.md} +1 -1
- package/docs/Misc-Group/{Reference6.md → nspc.Reference6.md} +1 -1
- package/docs/Misc-Group/{SampleClassWithoutModifier.md → nspc.SampleClassWithoutModifier.md} +1 -1
- package/docs/Misc-Group/{SampleRestResource.md → nspc.SampleRestResource.md} +1 -4
- package/docs/Misc-Group/{SampleRestResourceWithInnerClass.md → nspc.SampleRestResourceWithInnerClass.md} +1 -1
- package/docs/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md +14 -0
- package/docs/README.md +28 -19
- package/docs/Sample-Interfaces/{SampleInterface.md → nspc.SampleInterface.md} +1 -1
- package/docs/index.html +22 -22
- package/docs/{openapi.json → restapi.json} +77 -13
- package/examples/force-app/main/default/classes/MemberGrouping.cls +16 -0
- package/examples/force-app/main/default/classes/SampleClass.cls +3 -0
- package/examples/force-app/main/default/restapi/SampleRestResource.cls +0 -4
- package/examples/force-app/main/default/restapi/SampleRestResourceWithoutApexDocs.cls +15 -0
- package/examples/force-app/main/default/restapi/references/Reference2.cls +6 -0
- package/lib/cli/generate.js +12 -0
- package/lib/cli/generate.js.map +1 -1
- package/lib/model/markdown-generation-util/field-declaration-util.js +6 -1
- package/lib/model/markdown-generation-util/field-declaration-util.js.map +1 -1
- package/lib/model/markdown-type-file.d.ts +4 -3
- package/lib/model/markdown-type-file.js +21 -7
- package/lib/model/markdown-type-file.js.map +1 -1
- package/lib/model/openapi/open-api.d.ts +1 -1
- package/lib/model/openapi/open-api.js.map +1 -1
- package/lib/model/openapi/openapi-type-file.js +3 -2
- package/lib/model/openapi/openapi-type-file.js.map +1 -1
- package/lib/settings.d.ts +5 -0
- package/lib/settings.js +12 -0
- package/lib/settings.js.map +1 -1
- package/lib/test-helpers/DocCommentAnnotationBuilder.d.ts +2 -0
- package/lib/test-helpers/DocCommentAnnotationBuilder.js +6 -1
- package/lib/test-helpers/DocCommentAnnotationBuilder.js.map +1 -1
- package/lib/test-helpers/FieldMirrorBuilder.d.ts +3 -1
- package/lib/test-helpers/FieldMirrorBuilder.js +6 -0
- package/lib/test-helpers/FieldMirrorBuilder.js.map +1 -1
- package/lib/test-helpers/SettingsBuilder.js +1 -0
- package/lib/test-helpers/SettingsBuilder.js.map +1 -1
- package/lib/transpiler/markdown/class-file-generatorHelper.js +2 -1
- package/lib/transpiler/markdown/class-file-generatorHelper.js.map +1 -1
- package/lib/transpiler/openapi/open-api-docs-processor.d.ts +1 -0
- package/lib/transpiler/openapi/open-api-docs-processor.js +4 -2
- package/lib/transpiler/openapi/open-api-docs-processor.js.map +1 -1
- package/lib/transpiler/openapi/parsers/MethodParser.d.ts +3 -0
- package/lib/transpiler/openapi/parsers/MethodParser.js +80 -19
- package/lib/transpiler/openapi/parsers/MethodParser.js.map +1 -1
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.d.ts +10 -2
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js +35 -5
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js.map +1 -1
- package/package.json +5 -5
- package/src/cli/generate.ts +13 -0
- package/src/model/markdown-generation-util/field-declaration-util.ts +8 -3
- package/src/model/markdown-type-file.ts +25 -9
- package/src/model/openapi/open-api.ts +1 -1
- package/src/model/openapi/openapi-type-file.ts +3 -2
- package/src/service/__tests__/apex-file-reader.spec.ts +1 -0
- package/src/settings.ts +17 -0
- package/src/test-helpers/DocCommentAnnotationBuilder.ts +7 -1
- package/src/test-helpers/FieldMirrorBuilder.ts +8 -1
- package/src/test-helpers/SettingsBuilder.ts +1 -0
- package/src/transpiler/markdown/class-file-generatorHelper.ts +2 -1
- package/src/transpiler/openapi/open-api-docs-processor.ts +4 -2
- package/src/transpiler/openapi/parsers/MethodParser.ts +134 -30
- package/src/transpiler/openapi/parsers/ReferenceBuilder.ts +42 -6
- package/src/transpiler/openapi/parsers/__tests__/ReferenceBuilder.spec.ts +85 -0
- package/docs/API/SampleClassWithoutModifier.md +0 -11
- package/docs/Main/GroupedClass.md +0 -10
- package/docs/Misc-Group/AnotherInterface.md +0 -1
- package/docs/Misc-Group/Reference2.md +0 -7
package/README.md
CHANGED
|
@@ -126,6 +126,8 @@ The CLI supports the following parameters:
|
|
|
126
126
|
| --defaultGroupName | N/A | Defines the `@group` name to be used when a file does not specify it. | `Miscellaneous` | No |
|
|
127
127
|
| --sanitizeHtml | N/A | When on, any special character within your ApexDocs is converted into its HTML code representation. This is specially useful when generic objects are described within the docs, e.g. "List< Foo>", "Map<Foo, Bar>" because otherwise the content within < and > would be treated as HTML tags and not shown in the output. Content in @example blocks are never sanitized. | `Apex REST Api` | No |
|
|
128
128
|
| --openApiTitle | N/A | If using "openapi" as the target generator, this allows you to specify the OpenApi title value. | true | No |
|
|
129
|
+
| --namespace | N/A | The package namespace, if any. If this value is provided the namespace will be added as a prefix to all of the parsed files. If generating an OpenApi definition, it will be added to the file's Server Url. | N/A | No |
|
|
130
|
+
| --openApiFileName | N/A | If using "openapi" as the target generator, this allows you to specify the name of the output file. | `openapi` | No |
|
|
129
131
|
|
|
130
132
|
### Importing to your project
|
|
131
133
|
|
|
@@ -374,17 +376,17 @@ or a fully defined custom schema (See the `Custom Schemas` section below).
|
|
|
374
376
|
|
|
375
377
|
Example
|
|
376
378
|
```apex
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
379
|
+
/**
|
|
380
|
+
* @description This is a sample HTTP Post method
|
|
381
|
+
* @http-request-body
|
|
382
|
+
* description: This is an example of a request body
|
|
383
|
+
* required: true
|
|
384
|
+
* schema: ClassName
|
|
385
|
+
*/
|
|
386
|
+
@HttpPost
|
|
387
|
+
global static void doPost() {
|
|
388
|
+
///...
|
|
389
|
+
}
|
|
388
390
|
```
|
|
389
391
|
|
|
390
392
|
📝 Note that each parameter of this annotation is expected to be on its own line. Parameters are treated as YAML,
|
|
@@ -400,25 +402,25 @@ whether it is `required` or not, a `description`, and a `schema`.
|
|
|
400
402
|
|
|
401
403
|
Example
|
|
402
404
|
```apex
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
405
|
+
/**
|
|
406
|
+
* @description This is a sample HTTP Post method
|
|
407
|
+
* @return A String SObject.
|
|
408
|
+
* @http-parameter
|
|
409
|
+
* name: limit
|
|
410
|
+
* in: query
|
|
411
|
+
* required: true
|
|
412
|
+
* description: Limits the number of items on a page
|
|
413
|
+
* schema:
|
|
414
|
+
* type: integer
|
|
415
|
+
* @http-parameter
|
|
416
|
+
* name: complex
|
|
417
|
+
* in: cookie
|
|
418
|
+
* schema: MyClassName
|
|
419
|
+
*/
|
|
420
|
+
@HttpPost
|
|
421
|
+
global static String doPost() {
|
|
422
|
+
// ..
|
|
423
|
+
}
|
|
422
424
|
```
|
|
423
425
|
|
|
424
426
|
📝 Note that each parameter of this annotation is expected to be on its own line. Parameters are treated as YAML,
|
|
@@ -434,22 +436,22 @@ If no `description` is provided then one will be automatically built using the `
|
|
|
434
436
|
📝 Note that you can specify as many `@http-parameter` annotations as needed.
|
|
435
437
|
|
|
436
438
|
```apex
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
439
|
+
/**
|
|
440
|
+
* @description This is a sample HTTP Post method
|
|
441
|
+
* @return A String SObject.
|
|
442
|
+
* @http-response
|
|
443
|
+
* statusCode: 200
|
|
444
|
+
* schema: SuccessfulResponseClassName
|
|
445
|
+
* @http-response
|
|
446
|
+
* statusCode: 500
|
|
447
|
+
* description: Status Code 500 - An internal server error occurred.
|
|
448
|
+
* schema:
|
|
449
|
+
* type: string
|
|
450
|
+
*/
|
|
451
|
+
@HttpPost
|
|
452
|
+
global static String doPost() {
|
|
453
|
+
// ...
|
|
454
|
+
}
|
|
453
455
|
```
|
|
454
456
|
|
|
455
457
|
#### Class References
|
|
@@ -459,6 +461,49 @@ class will be parsed by the ApexDocs tool and automatically converted to a refer
|
|
|
459
461
|
|
|
460
462
|
The tool will parse the class and create a reference that complies with [Apex's support for User-Defined Types](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_methods.htm#ApexRESTUserDefinedTypes)
|
|
461
463
|
|
|
464
|
+
##### Reference Overrides
|
|
465
|
+
|
|
466
|
+
When dealing with references, there might be cases when you want to manually tell the parser what type of object a property
|
|
467
|
+
or field is. For example, let's say we have a class that looks as follows
|
|
468
|
+
|
|
469
|
+
```apex
|
|
470
|
+
public class MyClass {
|
|
471
|
+
public Object myObject;
|
|
472
|
+
public Account myAccountRecord;
|
|
473
|
+
}
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
In this case `myObject` has a type of `Object`, and `myAccountRecord` is an SObject. Neither of these will be accurately
|
|
477
|
+
parsed when building the OpenApi definition, instead they will be simple be referenced as `object` without any properties.
|
|
478
|
+
|
|
479
|
+
To accurately represent the shape of these objects, you can use the `@http-schema` annotation to essentially override its
|
|
480
|
+
type during parsing. In this annotation you can specify the same thing you would in any `schema` property when dealing with any
|
|
481
|
+
of the main `@http-*` methods, meaning a reference to another class, or a Custom Schema (as defined below).
|
|
482
|
+
|
|
483
|
+
```apex
|
|
484
|
+
public class MyClass {
|
|
485
|
+
/**
|
|
486
|
+
* @description This is a generic reference to another class
|
|
487
|
+
* @http-schema MyOtherClassName
|
|
488
|
+
*/
|
|
489
|
+
public Object myObject;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @description This is a reference to an Account SObject
|
|
493
|
+
* @http-schema
|
|
494
|
+
* type: object
|
|
495
|
+
* properties:
|
|
496
|
+
* Id:
|
|
497
|
+
* type: string
|
|
498
|
+
* Name:
|
|
499
|
+
* type: string
|
|
500
|
+
* CustomField__c:
|
|
501
|
+
* type: number
|
|
502
|
+
*/
|
|
503
|
+
public Account myAccountRecord;
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
|
|
462
507
|
---
|
|
463
508
|
|
|
464
509
|
If dealing with a collection, you can also specify the name of the reference either using the `List` or `Set` syntax.
|
|
@@ -472,16 +517,16 @@ Maps are not supported, as it is not possible to know which keys the map will co
|
|
|
472
517
|
to convert that to a valid specification. For this use case, define a Custom Schema as explained below.
|
|
473
518
|
|
|
474
519
|
```apex
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
520
|
+
/**
|
|
521
|
+
* @description This is a sample HTTP Post method
|
|
522
|
+
* @http-request-body
|
|
523
|
+
* description: This is an example of a request body
|
|
524
|
+
* schema: List<ClassName>
|
|
525
|
+
*/
|
|
526
|
+
@HttpPost
|
|
527
|
+
global static void doPost() {
|
|
528
|
+
///...
|
|
529
|
+
}
|
|
485
530
|
```
|
|
486
531
|
|
|
487
532
|
Inner class references are also supported, but note that you need to pass the full name of the reference,
|
|
@@ -489,16 +534,16 @@ by using the `ParentClassName.InnerClassName` syntax, even if the inner class re
|
|
|
489
534
|
referencing it.
|
|
490
535
|
|
|
491
536
|
```apex
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
537
|
+
/**
|
|
538
|
+
* @description This is a sample HTTP Post method
|
|
539
|
+
* @http-request-body
|
|
540
|
+
* description: This is an example of a request body
|
|
541
|
+
* schema: ParentClass.InnerClass
|
|
542
|
+
*/
|
|
543
|
+
@HttpPost
|
|
544
|
+
global static void doPost() {
|
|
545
|
+
///...
|
|
546
|
+
}
|
|
502
547
|
```
|
|
503
548
|
|
|
504
549
|
#### Custom Schemas
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SampleClass
|
|
1
|
+
# nspc.SampleClass
|
|
2
2
|
|
|
3
3
|
`NAMESPACEACCESSIBLE`
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
`STATUS: ACTIVE`
|
|
8
8
|
|
|
9
|
-
This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
9
|
+
This is a class description. This class relates to [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
10
10
|
But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist.
|
|
11
|
-
You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
11
|
+
You can also link using this syntax [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
**Group** Main
|
|
@@ -20,7 +20,7 @@ This is a class description. This class relates to [SampleInterface](/Sample-Int
|
|
|
20
20
|
**Author** Cesar Parra
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
**See** [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
23
|
+
**See** [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
24
24
|
|
|
25
25
|
## Constructors
|
|
26
26
|
### My Super Group
|
|
@@ -28,7 +28,7 @@ This is a class description. This class relates to [SampleInterface](/Sample-Int
|
|
|
28
28
|
|
|
29
29
|
`NAMESPACEACCESSIBLE`
|
|
30
30
|
|
|
31
|
-
Constructs a SampleClass without any arguments. This relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
31
|
+
Constructs a SampleClass without any arguments. This relates to [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
32
32
|
|
|
33
33
|
###### Throws
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ Constructs a SampleClass without any arguments. This relates to [SampleInterface
|
|
|
40
40
|
**CustomAnnotation** A Custom method annotation
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
**See** [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
43
|
+
**See** [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
44
44
|
|
|
45
45
|
###### Example
|
|
46
46
|
```apex
|
|
@@ -66,18 +66,18 @@ Constructs a SampleClass with an argument.
|
|
|
66
66
|
## Fields
|
|
67
67
|
### Common Constants
|
|
68
68
|
|
|
69
|
-
* `ANOTHER_CONSTANT` → `String`
|
|
70
|
-
* `A_CONSTANT` → `String`
|
|
71
|
-
* `listOfStrings` → `List<String>`
|
|
69
|
+
* `ANOTHER_CONSTANT` → `String`
|
|
70
|
+
* `A_CONSTANT` → `String` [`NAMESPACEACCESSIBLE` ] - This is a constant.
|
|
71
|
+
* `listOfStrings` → `List<String>`
|
|
72
72
|
---
|
|
73
73
|
### 'General' Constants
|
|
74
74
|
|
|
75
|
-
* `GENERAL_ANOTHER_CONSTANT` → `String`
|
|
76
|
-
* `GENERAL_A_CONSTANT` → `String`
|
|
75
|
+
* `GENERAL_ANOTHER_CONSTANT` → `String`
|
|
76
|
+
* `GENERAL_A_CONSTANT` → `String` [`NAMESPACEACCESSIBLE` ] - This is a constant.
|
|
77
77
|
---
|
|
78
78
|
### Other variables
|
|
79
79
|
|
|
80
|
-
* `someVariable` → `String`
|
|
80
|
+
* `someVariable` → `String`
|
|
81
81
|
---
|
|
82
82
|
## Properties
|
|
83
83
|
|
|
@@ -96,20 +96,21 @@ This is a String property.
|
|
|
96
96
|
|
|
97
97
|
---
|
|
98
98
|
## Methods
|
|
99
|
-
###
|
|
99
|
+
### A method group
|
|
100
|
+
##### `static sampleMethod(String argument1, String argument2)`
|
|
100
101
|
|
|
101
102
|
`NAMESPACEACCESSIBLE`
|
|
102
103
|
|
|
103
104
|
Executes commands based on the passed in argument.
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
###### Parameters
|
|
106
107
|
|
|
107
108
|
|Param|Description|
|
|
108
109
|
|---|---|
|
|
109
110
|
|`argument1`|Argument1 to debug|
|
|
110
111
|
|`argument2`|Argument2 to debug|
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
###### Return
|
|
113
114
|
|
|
114
115
|
**Type**
|
|
115
116
|
|
|
@@ -119,21 +120,23 @@ String
|
|
|
119
120
|
|
|
120
121
|
Empty string
|
|
121
122
|
|
|
122
|
-
|
|
123
|
+
###### Example
|
|
123
124
|
```apex
|
|
124
125
|
String result = SampleClass.testMethod();
|
|
125
126
|
System.debug(result);
|
|
126
127
|
```
|
|
127
128
|
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
##### `static anotherSampleMethod(String arg1)`
|
|
130
131
|
|
|
131
132
|
Something here
|
|
132
133
|
|
|
133
134
|
|
|
134
135
|
**Arg1** The arg1 description
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
---
|
|
138
|
+
### Other
|
|
139
|
+
##### `static call()`
|
|
137
140
|
|
|
138
141
|
Calls the method. This methods allows you to call it.
|
|
139
142
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# nspc.AnotherInterface
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# ChildClass
|
|
1
|
+
# nspc.ChildClass
|
|
2
2
|
|
|
3
3
|
**Inheritance**
|
|
4
4
|
|
|
5
|
-
[GrandparentClass](/Misc-Group/GrandparentClass.md)
|
|
5
|
+
[nspc.GrandparentClass](/Misc-Group/nspc.GrandparentClass.md)
|
|
6
6
|
>
|
|
7
|
-
[ParentClass](/Misc-Group/ParentClass.md)
|
|
7
|
+
[nspc.ParentClass](/Misc-Group/nspc.ParentClass.md)
|
|
8
8
|
>
|
|
9
9
|
ChildClass
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
**Implemented types**
|
|
13
13
|
|
|
14
|
-
[SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
14
|
+
[nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
15
15
|
|
|
16
16
|
## Fields
|
|
17
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# InterfaceWithInheritance
|
|
1
|
+
# nspc.InterfaceWithInheritance
|
|
2
2
|
|
|
3
3
|
**Extended types**
|
|
4
4
|
|
|
5
|
-
[SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
5
|
+
[nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
6
6
|
,
|
|
7
|
-
[AnotherInterface](/Misc-Group/AnotherInterface.md)
|
|
7
|
+
[nspc.AnotherInterface](/Misc-Group/nspc.AnotherInterface.md)
|
|
8
8
|
## Methods
|
|
9
9
|
### `execute()`
|
|
10
10
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# nspc.MemberGrouping
|
|
2
|
+
## Fields
|
|
3
|
+
### Group old syntax
|
|
4
|
+
|
|
5
|
+
* `anotherInGroup1` → `String`
|
|
6
|
+
* `inGroup1` → `String`
|
|
7
|
+
---
|
|
8
|
+
### Group new syntax
|
|
9
|
+
Group's description
|
|
10
|
+
|
|
11
|
+
* `anotherInGroup2` → `String`
|
|
12
|
+
* `inGroup2` → `String` - Description for constant in group 2
|
|
13
|
+
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SampleRestResource
|
|
1
|
+
# nspc.SampleRestResource
|
|
2
2
|
|
|
3
3
|
`RESTRESOURCE`
|
|
4
4
|
|
|
@@ -12,9 +12,6 @@ Account related operations
|
|
|
12
12
|
Sample HTTP Delete method with references to other types.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
**Http Request Body** description: This is an example of a request body required: true schema: SampleClass
|
|
16
|
-
|
|
17
|
-
|
|
18
15
|
**Http Parameter** name: limit in: header required: true description: My sample description. schema: SampleClass
|
|
19
16
|
|
|
20
17
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# nspc.SampleRestResourceWithoutApexDocs
|
|
2
|
+
|
|
3
|
+
`RESTRESOURCE`
|
|
4
|
+
|
|
5
|
+
Order related operations
|
|
6
|
+
|
|
7
|
+
## Methods
|
|
8
|
+
### `static doGet(String param1, Reference1 param2)`
|
|
9
|
+
|
|
10
|
+
`HTTPGET`
|
|
11
|
+
### `static doPatch(String param1, Reference1 param2)`
|
|
12
|
+
|
|
13
|
+
`HTTPPATCH`
|
|
14
|
+
---
|
package/docs/README.md
CHANGED
|
@@ -1,71 +1,80 @@
|
|
|
1
1
|
# Classes
|
|
2
2
|
## Misc Group
|
|
3
3
|
|
|
4
|
-
### [AnotherInterface](/Misc-Group/AnotherInterface.md)
|
|
4
|
+
### [nspc.AnotherInterface](/Misc-Group/nspc.AnotherInterface.md)
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
### [ChildClass](/Misc-Group/ChildClass.md)
|
|
7
|
+
### [nspc.ChildClass](/Misc-Group/nspc.ChildClass.md)
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
### [GrandparentClass](/Misc-Group/GrandparentClass.md)
|
|
10
|
+
### [nspc.GrandparentClass](/Misc-Group/nspc.GrandparentClass.md)
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
### [InterfaceWithInheritance](/Misc-Group/InterfaceWithInheritance.md)
|
|
13
|
+
### [nspc.InterfaceWithInheritance](/Misc-Group/nspc.InterfaceWithInheritance.md)
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
### [
|
|
16
|
+
### [nspc.MemberGrouping](/Misc-Group/nspc.MemberGrouping.md)
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
### [
|
|
19
|
+
### [nspc.ParentClass](/Misc-Group/nspc.ParentClass.md)
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
### [
|
|
22
|
+
### [nspc.Reference1](/Misc-Group/nspc.Reference1.md)
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
### [
|
|
25
|
+
### [nspc.Reference2](/Misc-Group/nspc.Reference2.md)
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
### [
|
|
28
|
+
### [nspc.Reference3](/Misc-Group/nspc.Reference3.md)
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
### [
|
|
31
|
+
### [nspc.Reference4](/Misc-Group/nspc.Reference4.md)
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
### [
|
|
34
|
+
### [nspc.Reference5](/Misc-Group/nspc.Reference5.md)
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
### [
|
|
37
|
+
### [nspc.Reference6](/Misc-Group/nspc.Reference6.md)
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
### [
|
|
40
|
+
### [nspc.SampleClassWithoutModifier](/Misc-Group/nspc.SampleClassWithoutModifier.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### [nspc.SampleRestResource](/Misc-Group/nspc.SampleRestResource.md)
|
|
41
44
|
|
|
42
45
|
Account related operations
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
|
|
46
|
-
### [SampleRestResourceWithInnerClass](/Misc-Group/SampleRestResourceWithInnerClass.md)
|
|
49
|
+
### [nspc.SampleRestResourceWithInnerClass](/Misc-Group/nspc.SampleRestResourceWithInnerClass.md)
|
|
47
50
|
|
|
48
51
|
Contact related operations
|
|
49
52
|
|
|
50
53
|
|
|
54
|
+
|
|
55
|
+
### [nspc.SampleRestResourceWithoutApexDocs](/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md)
|
|
56
|
+
|
|
57
|
+
Order related operations
|
|
58
|
+
|
|
59
|
+
|
|
51
60
|
## Main
|
|
52
61
|
|
|
53
|
-
### [GroupedClass](/Main/GroupedClass.md)
|
|
62
|
+
### [nspc.GroupedClass](/Main/nspc.GroupedClass.md)
|
|
54
63
|
|
|
55
64
|
Uses a block style apex doc
|
|
56
65
|
|
|
57
66
|
|
|
58
67
|
|
|
59
|
-
### [SampleClass](/Main/SampleClass.md)
|
|
68
|
+
### [nspc.SampleClass](/Main/nspc.SampleClass.md)
|
|
60
69
|
|
|
61
|
-
This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
70
|
+
This is a class description. This class relates to [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
62
71
|
But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist.
|
|
63
|
-
You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
72
|
+
You can also link using this syntax [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
64
73
|
|
|
65
74
|
|
|
66
75
|
## Sample Interfaces
|
|
67
76
|
|
|
68
|
-
### [SampleInterface](/Sample-Interfaces/SampleInterface.md)
|
|
77
|
+
### [nspc.SampleInterface](/Sample-Interfaces/nspc.SampleInterface.md)
|
|
69
78
|
|
|
70
79
|
This is an interface description.
|
|
71
80
|
|