Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openapi4restxq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
openapi4restxq
Commits
e324ab80
Commit
e324ab80
authored
6 years ago
by
Mathias Goebel
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/1.0.1'
parents
6a9afb27
cca43bbb
No related branches found
Branches containing commit
Tags
v1.0.1
Tags containing commit
No related merge requests found
Pipeline
#91007
passed
6 years ago
Stage: build
Stage: test
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
build.properties
+2
-2
2 additions, 2 deletions
build.properties
content/openapi.xqm
+7
-3
7 additions, 3 deletions
content/openapi.xqm
openapi.xq
+5
-3
5 additions, 3 deletions
openapi.xq
with
16 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
0
View file @
e324ab80
...
@@ -11,6 +11,7 @@ build-develop:
...
@@ -11,6 +11,7 @@ build-develop:
-
tags
-
tags
stage
:
build
stage
:
build
script
:
script
:
-
npm install
-
ant test
-
ant test
artifacts
:
artifacts
:
paths
:
paths
:
...
@@ -23,6 +24,7 @@ build-master:
...
@@ -23,6 +24,7 @@ build-master:
stage
:
build
stage
:
build
script
:
script
:
-
cp master.build.properties local.build.properties
-
cp master.build.properties local.build.properties
-
npm install
-
ant test
-
ant test
artifacts
:
artifacts
:
paths
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
build.properties
+
2
−
2
View file @
e324ab80
project.name
=
https://lab.sub.uni-goettingen.de/
restxq
openapi-develop
project.name
=
https://lab.sub.uni-goettingen.de/openapi
4restxq
-develop
project.version
=
1.0.
0
project.version
=
1.0.
1
project.title
=
OpenAPI for RESTXQ
project.title
=
OpenAPI for RESTXQ
project.abbrev
=
openapi-develop
project.abbrev
=
openapi-develop
project.processorversion
=
4.6.0
project.processorversion
=
4.6.0
...
...
This diff is collapsed.
Click to expand it.
content/openapi.xqm
+
7
−
3
View file @
e324ab80
...
@@ -42,12 +42,16 @@ as map(*) {
...
@@ -42,12 +42,16 @@ as map(*) {
return
return
$inspect
$inspect
let
$config
:=
doc
(
$target
||
"/openapi-config.xml"
)
/*
let
$config-uri
:=
$target
||
"/openapi-config.xml"
let
$repo
:=
doc
(
$target
||
"/repo.xml"
)
/*
let
$config
:=
if
(
doc-available
(
$config-uri
))
then
doc
(
$config-uri
)
/*
let
$config
:=
if
(
doc-available
(
$config-uri
))
then
doc
(
$config-uri
)
/*
else
doc
(
replace
(
system:get-module-load-path
()
,
'^(xmldb:exist://)?(embedded-eXist-server)?(.+)$'
,
'$3'
)
||
"/openapi-config.xml"
)
/*
let
$expath
:=
doc
(
$target
||
"/expath-pkg.xml"
)
/*
let
$expath
:=
doc
(
$target
||
"/expath-pkg.xml"
)
/*
return
return
map
:
merge
((
map
:
merge
((
map
{
"openapi"
:
"3.0.
1
"
}
,
map
{
"openapi"
:
"3.0.
2
"
}
,
openapi:paths-object
(
$module
)
,
openapi:paths-object
(
$module
)
,
openapi:servers-object
(
$config
/
openapi:servers
)
,
openapi:servers-object
(
$config
/
openapi:servers
)
,
openapi:info-object
(
$expath
,
$repo
,
$config
/
openapi:info
)
,
openapi:info-object
(
$expath
,
$repo
,
$config
/
openapi:info
)
,
...
...
This diff is collapsed.
Click to expand it.
openapi.xq
+
5
−
3
View file @
e324ab80
...
@@ -14,9 +14,11 @@ declare option output:media-type "application/json";
...
@@ -14,9 +14,11 @@ declare option output:media-type "application/json";
let
$prepare
:=
xmldb:get-child-resources
(
"/db/apps/openapi/content"
)[
.
!=
"openapi.xqm"
]
let
$prepare
:=
xmldb:get-child-resources
(
"/db/apps/openapi/content"
)[
.
!=
"openapi.xqm"
]
!
exrest:register-module
(
xs:anyURI
(
"/db/apps/openapi/content/"
||
.
))
!
exrest:register-module
(
xs:anyURI
(
"/db/apps/openapi/content/"
||
.
))
(: locate the target path :)
let
$thisPath
:=
replace
(
system:get-module-load-path
()
,
'^(xmldb:exist://)?(embedded-eXist-server)?(.+)$'
,
'$3'
)
let
$target
:=
request:get-parameter
(
"target"
,
$thisPath
)
return
return
(: prepare OpenAPI as map(*) :)
(: prepare OpenAPI as map(*) :)
openapi:main
(
"/db/apps/openapi"
)
openapi:main
(
$target
)
(: ("paths")("/openapi-test/full/get/{param1}/{param2}.{format}") :)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment