source: node_modules/@swagger-api/apidom-ns-openapi-3-0/es/elements/PathItem.mjs@ d24f17c

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.7 KB
RevLine 
[d24f17c]1import { ObjectElement } from '@swagger-api/apidom-core';
2class PathItem extends ObjectElement {
3 constructor(content, meta, attributes) {
4 super(content, meta, attributes);
5 this.element = 'pathItem';
6 }
7 get $ref() {
8 return this.get('$ref');
9 }
10 set $ref($ref) {
11 this.set('$ref', $ref);
12 }
13 get summary() {
14 return this.get('summary');
15 }
16 set summary(summary) {
17 this.set('summary', summary);
18 }
19 get description() {
20 return this.get('description');
21 }
22 set description(description) {
23 this.set('description', description);
24 }
25 get GET() {
26 return this.get('get');
27 }
28 set GET(operation) {
29 this.set('GET', operation);
30 }
31 get PUT() {
32 return this.get('put');
33 }
34 set PUT(operation) {
35 this.set('PUT', operation);
36 }
37 get POST() {
38 return this.get('post');
39 }
40 set POST(operation) {
41 this.set('POST', operation);
42 }
43 get DELETE() {
44 return this.get('delete');
45 }
46 set DELETE(operation) {
47 this.set('DELETE', operation);
48 }
49 get OPTIONS() {
50 return this.get('options');
51 }
52 set OPTIONS(operation) {
53 this.set('OPTIONS', operation);
54 }
55 get HEAD() {
56 return this.get('head');
57 }
58 set HEAD(operation) {
59 this.set('HEAD', operation);
60 }
61 get PATCH() {
62 return this.get('patch');
63 }
64 set PATCH(operation) {
65 this.set('PATCH', operation);
66 }
67 get TRACE() {
68 return this.get('trace');
69 }
70 set TRACE(operation) {
71 this.set('TRACE', operation);
72 }
73 get servers() {
74 return this.get('servers');
75 }
76 set servers(servers) {
77 this.set('servers', servers);
78 }
79 get parameters() {
80 return this.get('parameters');
81 }
82 set parameters(parameters) {
83 this.set('parameters', parameters);
84 }
85}
86export default PathItem;
Note: See TracBrowser for help on using the repository browser.