@@ -15,6 +15,19 @@ testRule('xgen-IPA-104-resource-has-GET', [
1515 patch : { } ,
1616 delete : { } ,
1717 } ,
18+ '/standard/{exampleId}/nested' : {
19+ post : { } ,
20+ get : { } ,
21+ } ,
22+ '/standard/{exampleId}/nested/{exampleId}' : {
23+ get : { } ,
24+ patch : { } ,
25+ delete : { } ,
26+ } ,
27+ '/standard/{exampleId}/nestedSingleton' : {
28+ get : { } ,
29+ patch : { } ,
30+ } ,
1831 '/custom' : {
1932 post : { } ,
2033 get : { } ,
@@ -46,6 +59,17 @@ testRule('xgen-IPA-104-resource-has-GET', [
4659 patch : { } ,
4760 delete : { } ,
4861 } ,
62+ '/standard/{exampleId}/nested' : {
63+ post : { } ,
64+ get : { } ,
65+ } ,
66+ '/standard/{exampleId}/nested/{exampleId}' : {
67+ patch : { } ,
68+ delete : { } ,
69+ } ,
70+ '/standard/{exampleId}/nestedSingleton' : {
71+ patch : { } ,
72+ } ,
4973 '/custom' : {
5074 post : { } ,
5175 get : { } ,
@@ -69,6 +93,18 @@ testRule('xgen-IPA-104-resource-has-GET', [
6993 path : [ 'paths' , '/standard' ] ,
7094 severity : DiagnosticSeverity . Warning ,
7195 } ,
96+ {
97+ code : 'xgen-IPA-104-resource-has-GET' ,
98+ message : 'APIs must provide a get method for resources. http://go/ipa/117' ,
99+ path : [ 'paths' , '/standard/{exampleId}/nested' ] ,
100+ severity : DiagnosticSeverity . Warning ,
101+ } ,
102+ {
103+ code : 'xgen-IPA-104-resource-has-GET' ,
104+ message : 'APIs must provide a get method for resources. http://go/ipa/117' ,
105+ path : [ 'paths' , '/standard/{exampleId}/nestedSingleton' ] ,
106+ severity : DiagnosticSeverity . Warning ,
107+ } ,
72108 {
73109 code : 'xgen-IPA-104-resource-has-GET' ,
74110 message : 'APIs must provide a get method for resources. http://go/ipa/117' ,
0 commit comments