From e6d6bae706f7cb2a58e364d013d831ea5e85df52 Mon Sep 17 00:00:00 2001 From: "jueun.park" <s5616012@msx.tu-dresden.de> Date: Sun, 1 Aug 2021 12:05:52 +0900 Subject: [PATCH] api examples generated, parsed and composed --- .../6.8/executionHistory/executionHistory.bin | Bin 232845 -> 232845 bytes .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .gradle/6.8/fileHashes/fileHashes.bin | Bin 74765 -> 74765 bytes .gradle/6.8/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .gradle/6.8/javaCompile/javaCompile.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .../inf/st/openapi/OpenAPIMain.class | Bin 61558 -> 61599 bytes composedFile.json | 165 ------------------ gen-api-ex/api-with-examples_generated.json | 132 ++++++++++++++ gen-api-ex/callback-example_generated.json | 132 ++++++++++++++ gen-api-ex/link-example_generated.json | 132 ++++++++++++++ gen-api-ex/petstore-expanded_generated.json | 132 ++++++++++++++ gen-api-ex/petstore_generated.json | 132 ++++++++++++++ gen-api-ex/uspto_generated.json | 132 ++++++++++++++ .../tudresden/inf/st/openapi/OpenAPIMain.java | 9 +- 15 files changed, 798 insertions(+), 168 deletions(-) delete mode 100644 composedFile.json create mode 100644 gen-api-ex/api-with-examples_generated.json create mode 100644 gen-api-ex/callback-example_generated.json create mode 100644 gen-api-ex/link-example_generated.json create mode 100644 gen-api-ex/petstore-expanded_generated.json create mode 100644 gen-api-ex/petstore_generated.json create mode 100644 gen-api-ex/uspto_generated.json diff --git a/.gradle/6.8/executionHistory/executionHistory.bin b/.gradle/6.8/executionHistory/executionHistory.bin index eb09ed60d2ce976842a2a259db071cd8e118feb8..3d509229b37ded56d536f82fdf06ed33a9bb773f 100644 GIT binary patch delta 2881 zcmeC3&DT4duc3u;3)9ERDkh~VriJMyW~F6G<w;p)MMlLY<vFEkIT@u4V8Fu5uz7mn z97fscXJ<32ZC^W^v6ELIrLFYkV)-+t)D0W1#9EmB-~Mq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9..71aab95ae74613e3452cc8e53cd3e55e7c23d162 100644 GIT binary patch literal 17 VcmZQp+O{L7ZHdZl1~6b^001)$1S<dl literal 17 VcmZQp+O{L7ZHdZl1~6c}1^_eR1poj5 diff --git a/.gradle/6.8/fileHashes/fileHashes.bin b/.gradle/6.8/fileHashes/fileHashes.bin index 737f487261919951193183707949dee694f1ccc7..bddfd75b352c7341a93e62b0518b1104f6141b8e 100644 GIT binary patch delta 2377 zcmeA@!P0wzWrJ{wLP}fd%f<3%PN^F<T#2<X`_I6@SoMGP-$({9xc6nVamyAVmj7!Q zlqPpa>wy?5lVzua8LE^0!3@S{lNDn?B8(3w*T+gt&W#aa`M-wo<>Xd~=<~_jA&f_p zUqTp<CrihIHN2SY3t>E&Tn}NqoV*djke>V)!jPIQ8V6P^J=q<?kez&UCRpV4<kb+7 z;>otNKq3scC+CA1jBh6|oTbO}e+}b%utylgi>7Z>WE7s<7cUHQoX6zXDN>X7$Aev3 zIQedz)a1a~APz&@<jmP%qar5H1~V8xPCg4^e3|?o!ib-IF#)88(SI^?BA5|9dFmVx zgW=rd<6s8kx5+;tj31M==Ypgd6DI$KC^ntk4;Ep#H~Ao#!T4+P=ec0l{(-tSXR=|k z@Z<+cV8=R6{+lQ@xo{rHeT>PIJLiFnV^}qLH<-bgHMut#B*N%9c|U{^G&yiSNQB|n z<Yq8~@!#Z)E2Ji$pD)7me+?7F4hHeG$^9v6pwMucd@(_4^5qne1q|0FzfJ*ZW@4Hw zn+jqu=1g9{0K{Mjp8OEZU=*7yybvssHrW-zcrv*h%wS@fyb{b{OrLxk%wXc2%)1Dr zn9+T*J($68a&jS<!6-0!F@(W0`6`&fpg5U*F(@P$mO@;ayma!zbg&~OCUa+ijR}}M zcX0wJCGMTfxCA7^#68&<!r+~p3Ssb1o(^U(+JhsyITPeH#{9|tsZx`-LO3Cl3k#$s zyDtUFFwC4BzZ7H?L)YYqU<RY_<d4ZxlWVg;(v04d_a{qDUJv0oPd=UnR(p7I<T5Cu z8_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H%5! z^y5%g#Ppv~R`hgjS%|LK>9J5&!t{P9D{=ZkC@XpTXIY5LQy?xEI0Mej4ssBeXG{;5 zgUDw=<b^UOAFLIgz62_tJAJnt#Gd@=Z=tNh>GJXrv7+gLP?p{FW+<z8`c`>}iB1p` s*%=`To=E{>rQ>u-1&DV0?cNHEub4npj?;8YWkyit(<Lx{t}<f*08QhHx&QzG diff --git a/.gradle/6.8/fileHashes/fileHashes.lock b/.gradle/6.8/fileHashes/fileHashes.lock index 8086c489f1a35116e2100303f7273a7184df5d55..a36994a264ecec43fca917a5243c81b713c5eded 100644 GIT binary patch literal 17 VcmZP;t>XHyYn^sA0~nNv0st(k1SS9g literal 17 VcmZP;t>XHyYn^sA0~lnv0st(+1WEt^ diff --git a/.gradle/6.8/javaCompile/javaCompile.lock b/.gradle/6.8/javaCompile/javaCompile.lock index 66b336e06a8ebd4fc094e0f1ffad06b3b2c937b9..c2a8f59c1de299fffe11a0ce79449619f1d3d4dc 100644 GIT binary patch literal 17 VcmZS9_jn)L_pnKx0Ss7I001xl1bhGh literal 17 UcmZS9_jn)L_pnKx0Ss8{058=9QUCw| diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 5b7ffbdb2ca7f0dea3e4154cc581445b90e635f4..2ccc0fc242594bc28b2b8bd110392783c322b980 100644 GIT binary patch literal 17 UcmZRMRkTpz>bjrL00zu%03aL#2LJ#7 literal 17 UcmZRMRkTpz>bjrL00ztq03X%@!2kdN diff --git a/build/classes/java/main/de/tudresden/inf/st/openapi/OpenAPIMain.class b/build/classes/java/main/de/tudresden/inf/st/openapi/OpenAPIMain.class index 473dfa3da0ae9f4824fd147b13ab8b99d9687a74..6ec5ab501d6d9617b81e5077cc047592705625eb 100644 GIT binary patch delta 1932 zcmezNfO-By<_$kM*%|k;-QZ%f-~6AGiG}gTW+px-8*i@C;)0TVy{zK=JVpkgti-ZJ z{mguQx6GW>@S@C;)FMU(T|NEu)I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ac06`5-x#nGc#{ z4WAx~{LH|?{FOn3`8$I&^A83U=AR7O%)b~+n13@^Gyh@mW&X<$!u*dRjrl)AE(-%g z84DvrEejJvD+@EjLKYT=eJrdDM_AYyPP1?@TxQ{9c+bMc$iu?TD8#}y+3(p4Ng)Of z77+#k7BL2K7I6l776}G57D)y}7U{|U&)X#B88}!J83b9B86;R#7!+Al88leb7))3+ zCck^W!&HZXgGHA?fJL7{g2jMAfyIzPgT;u!fW?@>g2jZvnZ=aBgT<V|pT&Y9oW+tM zj>U>0jm2j2?H7l29T+%RoEQXIoEfB8To{yDTp4s&+!#z*+!<V0JQ=)Mycj}Qycwcd zd>B$#{3f4%dB-(~frBNOL4YNML4qZeL6IelL5n4V!H^}A!G<M@!I>qR!H*?|A(SPS zA(17HA%i8Jp@b!op^_zup^hb)p@k)dp^GJL@|#!hRkIj4SaKNnS#lZVSn?QDS@Ic7 zSPB@dSqd4vSc(_|S&A7FSV||o*(h7dz`;_@Aiz??Ai+}0V8v3$;K$Oy5X#cX5X;g$ z`P`dRs_hIMEFBC2EL{weEZq!BEIkZ%EWHdtEPV_SEE5>wStc@MuuPu3_w5_S=?ok! zGa2|<W-%DD%x17+nZppnGM6EhWgbHY%L0aMmc^S-y_00rT+YD3vXX(HWfg-s%W4K= jmNg7EENdBJSk^J*u&igOV%fk@%d(N7nPtmlo)41&y7Azx diff --git a/composedFile.json b/composedFile.json deleted file mode 100644 index 16472c65..00000000 --- a/composedFile.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "openapi" : "3.0.0", - "info" : { - "description" : "", - "termsOfService" : "", - "title" : "Simple API overview", - "version" : "2.0.0" - }, - "paths" : { - "/v2" : { - "description" : "", - "summary" : "", - "get" : { - "summary" : "Show API version details", - "description" : "", - "operationId" : "getVersionDetailsv2", - "responses" : { - "200" : { - "description" : "200 response", - "content" : { - "application/json" : { - "examples" : { - "foo" : { - "summary" : "", - "description" : "", - "value" : { - "version" : { - "status" : "CURRENT", - "updated" : "2011-01-21T11:33:21Z", - "media-types" : [ { - "base" : "application/xml", - "type" : "application/vnd.openstack.compute+xml;version=2" - }, { - "base" : "application/json", - "type" : "application/vnd.openstack.compute+json;version=2" - } ], - "id" : "v2.0", - "links" : [ { - "href" : "http://127.0.0.1:8774/v2/", - "rel" : "self" - }, { - "href" : "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf", - "type" : "application/pdf", - "rel" : "describedby" - }, { - "href" : "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl", - "type" : "application/vnd.sun.wadl+xml", - "rel" : "describedby" - }, { - "href" : "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl", - "type" : "application/vnd.sun.wadl+xml", - "rel" : "describedby" - } ] - } - }, - "externalValue" : "" - } - } - } - } - }, - "203" : { - "description" : "203 response", - "content" : { - "application/json" : { - "examples" : { - "foo" : { - "summary" : "", - "description" : "", - "value" : { - "version" : { - "status" : "CURRENT", - "updated" : "2011-01-21T11:33:21Z", - "media-types" : [ { - "base" : "application/xml", - "type" : "application/vnd.openstack.compute+xml;version=2" - }, { - "base" : "application/json", - "type" : "application/vnd.openstack.compute+json;version=2" - } ], - "id" : "v2.0", - "links" : [ { - "href" : "http://23.253.228.211:8774/v2/", - "rel" : "self" - }, { - "href" : "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf", - "type" : "application/pdf", - "rel" : "describedby" - }, { - "href" : "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl", - "type" : "application/vnd.sun.wadl+xml", - "rel" : "describedby" - } ] - } - }, - "externalValue" : "" - } - } - } - } - } - } - } - }, - "/" : { - "description" : "", - "summary" : "", - "get" : { - "summary" : "List API versions", - "description" : "", - "operationId" : "listVersionsv2", - "responses" : { - "200" : { - "description" : "200 response", - "content" : { - "application/json" : { - "examples" : { - "foo" : { - "summary" : "", - "description" : "", - "value" : { - "versions" : [ { - "status" : "CURRENT", - "updated" : "2011-01-21T11:33:21Z", - "id" : "v2.0", - "links" : [ { - "href" : "http://127.0.0.1:8774/v2/", - "rel" : "self" - } ] - }, { - "status" : "EXPERIMENTAL", - "updated" : "2013-07-23T11:33:21Z", - "id" : "v3.0", - "links" : [ { - "href" : "http://127.0.0.1:8774/v3/", - "rel" : "self" - } ] - } ] - }, - "externalValue" : "" - } - } - } - } - }, - "300" : { - "description" : "300 response", - "content" : { - "application/json" : { - "examples" : { - "foo" : { - "summary" : "", - "description" : "", - "value" : "{\n \"versions\": [\n {\n \"status\": \"CURRENT\",\n \"updated\": \"2011-01-21T11:33:21Z\",\n \"id\": \"v2.0\",\n \"links\": [\n {\n \"href\": \"http://127.0.0.1:8774/v2/\",\n \"rel\": \"self\"\n }\n ]\n },\n {\n \"status\": \"EXPERIMENTAL\",\n \"updated\": \"2013-07-23T11:33:21Z\",\n \"id\": \"v3.0\",\n \"links\": [\n {\n \"href\": \"http://127.0.0.1:8774/v3/\",\n \"rel\": \"self\"\n }\n ]\n }\n ]\n}\n", - "externalValue" : "" - } - } - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/gen-api-ex/api-with-examples_generated.json b/gen-api-ex/api-with-examples_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/api-with-examples_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/gen-api-ex/callback-example_generated.json b/gen-api-ex/callback-example_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/callback-example_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/gen-api-ex/link-example_generated.json b/gen-api-ex/link-example_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/link-example_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/gen-api-ex/petstore-expanded_generated.json b/gen-api-ex/petstore-expanded_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/petstore-expanded_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/gen-api-ex/petstore_generated.json b/gen-api-ex/petstore_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/petstore_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/gen-api-ex/uspto_generated.json b/gen-api-ex/uspto_generated.json new file mode 100644 index 00000000..687e97df --- /dev/null +++ b/gen-api-ex/uspto_generated.json @@ -0,0 +1,132 @@ +{ + "openapi" : "3.0.1", + "info" : { + "contact" : { + "email" : "developer@uspto.gov", + "name" : "Open Data Portal", + "url" : "https://developer.uspto.gov" + }, + "description" : "The Data Set API (DSAPI) allows the public users to discover and search USPTO exported data sets. This is a generic API that allows USPTO users to make any CSV based data files searchable through API. With the help of GET call, it returns the list of data fields that are searchable. With the help of POST call, data can be fetched based on the filters on the field names. Please note that POST call is used to search the actual data. The reason for the POST call is that it allows users to specify any complex search criteria without worry about the GET size limitations as well as encoding of the input parameters.", + "termsOfService" : "", + "title" : "USPTO Data Set API", + "version" : "1.0.0" + }, + "tags" : [ { + "name" : "metadata", + "description" : "Find out about the data sets" + }, { + "name" : "search", + "description" : "Search a data set" + } ], + "paths" : { + "/{dataset}/{version}/records" : { + "description" : "", + "summary" : "", + "post" : { + "tags" : [ "search" ], + "summary" : "Provides search capability for the data set with the given search criteria.", + "description" : "This API is based on Solr/Lucene Search. The data is indexed using SOLR. This GET API returns the list of all the searchable field names that are in the Solr Index. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the Solr/Lucene Syntax. Please refer https://lucene.apache.org/core/3_6_2/queryparsersyntax.html#Overview for the query syntax. List of field names that are searchable can be determined using above GET api.", + "operationId" : "perform-search", + "parameters" : [ { + "description" : "Version of the dataset.", + "required" : true, + "in" : "path", + "name" : "version" + }, { + "description" : "Name of the dataset. In this case, the default value is oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + } ], + "requestBody" : { + "description" : "", + "content" : { + "application/x-www-form-urlencoded" : { } + } + }, + "responses" : { + "200" : { + "description" : "successful operation", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "No matching record found for the given criteria." + } + } + } + }, + "/{dataset}/{version}/fields" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "Provides the general information about the API and the list of fields that can be used to query the dataset.", + "description" : "This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below.", + "operationId" : "list-searchable-fields", + "parameters" : [ { + "description" : "Name of the dataset.", + "example" : "oa_citations", + "required" : true, + "in" : "path", + "name" : "dataset" + }, { + "description" : "Version of the dataset.", + "example" : "v1", + "required" : true, + "in" : "path", + "name" : "version" + } ], + "responses" : { + "200" : { + "description" : "The dataset API for the given version is found and it is accessible to consume.", + "content" : { + "application/json" : { } + } + }, + "404" : { + "description" : "The combination of dataset name and version is not found in the system or it is not published yet to be consumed by public.", + "content" : { + "application/json" : { } + } + } + } + } + }, + "/" : { + "description" : "", + "summary" : "", + "get" : { + "tags" : [ "metadata" ], + "summary" : "List available data sets", + "description" : "", + "operationId" : "list-data-sets", + "responses" : { + "200" : { + "description" : "Returns a list of data sets", + "content" : { + "application/json" : { + "example" : { + "total" : 2, + "apis" : [ { + "apiKey" : "oa_citations", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/oa_citations/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/oa_citations.json" + }, { + "apiKey" : "cancer_moonshot", + "apiVersionNumber" : "v1", + "apiUrl" : "https://developer.uspto.gov/ds-api/cancer_moonshot/v1/fields", + "apiDocumentationUrl" : "https://developer.uspto.gov/ds-api-docs/index.html?url=https://developer.uspto.gov/ds-api/swagger/docs/cancer_moonshot.json" + } ] + } + } + } + } + } + } + } + }, + "components" : { } +} \ No newline at end of file diff --git a/src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java b/src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java index 3f132a6d..010b78bf 100644 --- a/src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java +++ b/src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java @@ -33,8 +33,8 @@ public class OpenAPIMain { public static void main(String[] args) throws IOException, ResolutionException, ValidationException, EncodeException { OpenAPIObject openApi; OpenApi3 api3; - String fileName = "api-with-examples.json"; - FileWriter writer = new FileWriter("composedFile.json"); + String fileName = "uspto.json"; + FileWriter writer = new FileWriter("./gen-api-ex/api-with-examples_generated.json"); URL expUrl = OpenAPIMain.class.getClassLoader().getResource(fileName); File file = null; @@ -671,7 +671,10 @@ public class OpenAPIMain { parameterObject.setName(parameter.getName()); parameterObject.setIn(parameter.getIn()); - parameterObject.setRequired(parameter.getRequired()); + if( parameter.getRequired() == null ) + parameterObject.setRequired(false); + else + parameterObject.setRequired(parameter.getRequired()); if( parameter.getDescription() != null ) parameterObject.setDescription( parameter.getDescription() ); -- GitLab