main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | import { PathItemElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
---|
2 | class PathItem extends PathItemElement {
|
---|
3 | get GET() {
|
---|
4 | return this.get('get');
|
---|
5 | }
|
---|
6 | set GET(operation) {
|
---|
7 | this.set('GET', operation);
|
---|
8 | }
|
---|
9 | get PUT() {
|
---|
10 | return this.get('put');
|
---|
11 | }
|
---|
12 | set PUT(operation) {
|
---|
13 | this.set('PUT', operation);
|
---|
14 | }
|
---|
15 | get POST() {
|
---|
16 | return this.get('post');
|
---|
17 | }
|
---|
18 | set POST(operation) {
|
---|
19 | this.set('POST', operation);
|
---|
20 | }
|
---|
21 | get DELETE() {
|
---|
22 | return this.get('delete');
|
---|
23 | }
|
---|
24 | set DELETE(operation) {
|
---|
25 | this.set('DELETE', operation);
|
---|
26 | }
|
---|
27 | get OPTIONS() {
|
---|
28 | return this.get('options');
|
---|
29 | }
|
---|
30 | set OPTIONS(operation) {
|
---|
31 | this.set('OPTIONS', operation);
|
---|
32 | }
|
---|
33 | get HEAD() {
|
---|
34 | return this.get('head');
|
---|
35 | }
|
---|
36 | set HEAD(operation) {
|
---|
37 | this.set('HEAD', operation);
|
---|
38 | }
|
---|
39 | get PATCH() {
|
---|
40 | return this.get('patch');
|
---|
41 | }
|
---|
42 | set PATCH(operation) {
|
---|
43 | this.set('PATCH', operation);
|
---|
44 | }
|
---|
45 | get TRACE() {
|
---|
46 | return this.get('trace');
|
---|
47 | }
|
---|
48 | set TRACE(operation) {
|
---|
49 | this.set('TRACE', operation);
|
---|
50 | }
|
---|
51 | }
|
---|
52 | export default PathItem; |
---|
Note:
See
TracBrowser
for help on using the repository browser.