Compare commits
4 Commits
de60772755
...
642f6071fe
Author | SHA1 | Date | |
---|---|---|---|
642f6071fe | |||
2da86e82b9 | |||
52b69f04bb | |||
e315c84c3d |
0
Dockerfile
Normal file → Executable file
0
Dockerfile
Normal file → Executable file
0
LICENSE.md
Normal file → Executable file
0
LICENSE.md
Normal file → Executable file
3
README.md
Normal file → Executable file
3
README.md
Normal file → Executable file
@ -4,8 +4,7 @@ Manages user workspaces
|
|||||||
|
|
||||||
To build :
|
To build :
|
||||||
|
|
||||||
bee generate routers
|
bee generate routers && bee run -gendoc=true -downdoc=true
|
||||||
bee run -gendoc=true -downdoc=true
|
|
||||||
|
|
||||||
If default Swagger page is displayed instead of tyour api, change url in swagger/index.html file to :
|
If default Swagger page is displayed instead of tyour api, change url in swagger/index.html file to :
|
||||||
|
|
||||||
|
0
conf/app.conf
Normal file → Executable file
0
conf/app.conf
Normal file → Executable file
0
controllers/version.go
Normal file → Executable file
0
controllers/version.go
Normal file → Executable file
24
controllers/workspace.go
Normal file → Executable file
24
controllers/workspace.go
Normal file → Executable file
@ -26,12 +26,15 @@ var paths = map[tools.DataType]map[tools.METHOD]string{
|
|||||||
// @Title Search
|
// @Title Search
|
||||||
// @Description search workspace
|
// @Description search workspace
|
||||||
// @Param search path string true "the word search you want to get"
|
// @Param search path string true "the word search you want to get"
|
||||||
|
// @Param is_draft query string false "draft wished"
|
||||||
// @Success 200 {workspace} models.workspace
|
// @Success 200 {workspace} models.workspace
|
||||||
// @router /search/:search [get]
|
// @router /search/:search [get]
|
||||||
func (o *WorkspaceController) Search() {
|
func (o *WorkspaceController) Search() {
|
||||||
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
// store and return Id or post with UUID
|
// store and return Id or post with UUID
|
||||||
search := o.Ctx.Input.Param(":search")
|
search := o.Ctx.Input.Param(":search")
|
||||||
o.Data["json"] = oclib.Search(nil, search, oclib.LibDataEnum(oclib.WORKSPACE))
|
isDraft := o.Ctx.Input.Query("is_draft")
|
||||||
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, nil).Search(nil, search, isDraft == "true")
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,13 +45,14 @@ func (o *WorkspaceController) Search() {
|
|||||||
// @Success 200 {workspace} models.workspace
|
// @Success 200 {workspace} models.workspace
|
||||||
// @router /:id [put]
|
// @router /:id [put]
|
||||||
func (o *WorkspaceController) Put() {
|
func (o *WorkspaceController) Put() {
|
||||||
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
// store and return Id or post with UUID
|
// store and return Id or post with UUID
|
||||||
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
||||||
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
||||||
var res map[string]interface{}
|
var res map[string]interface{}
|
||||||
id := o.Ctx.Input.Param(":id")
|
id := o.Ctx.Input.Param(":id")
|
||||||
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &res)
|
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &res)
|
||||||
o.Data["json"] = oclib.UpdateOne(oclib.LibDataEnum(oclib.WORKSPACE), res, id, caller)
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, caller).UpdateOne(res, id)
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,31 +62,36 @@ func (o *WorkspaceController) Put() {
|
|||||||
// @Success 200 {workspace} models.workspace
|
// @Success 200 {workspace} models.workspace
|
||||||
// @router / [post]
|
// @router / [post]
|
||||||
func (o *WorkspaceController) Post() {
|
func (o *WorkspaceController) Post() {
|
||||||
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
||||||
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
||||||
var res map[string]interface{}
|
var res map[string]interface{}
|
||||||
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &res)
|
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &res)
|
||||||
o.Data["json"] = oclib.StoreOne(oclib.LibDataEnum(oclib.WORKSPACE), res, caller)
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, caller).StoreOne(res)
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Title GetAll
|
// @Title GetAll
|
||||||
// @Description find workspace by id
|
// @Description find workspace by id
|
||||||
|
// @Param is_draft query string false "draft wished"
|
||||||
// @Success 200 {workspace} models.workspace
|
// @Success 200 {workspace} models.workspace
|
||||||
// @router / [get]
|
// @router / [get]
|
||||||
func (o *WorkspaceController) GetAll() {
|
func (o *WorkspaceController) GetAll() {
|
||||||
o.Data["json"] = oclib.LoadAll(oclib.LibDataEnum(oclib.WORKSPACE))
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
|
isDraft := o.Ctx.Input.Query("is_draft")
|
||||||
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, nil).LoadAll(isDraft == "true")
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Title Get
|
// @Title Get
|
||||||
// @Description find workflow by id
|
// @Description find workflow by idisDraft := o.Ctx.Input.Query("is_draft")
|
||||||
// @Param id path string true "the id you want to get"
|
// @Param id path string true "the id you want to get"
|
||||||
// @Success 200 {workspace} models.workspace
|
// @Success 200 {workspace} models.workspace
|
||||||
// @router /:id [get]
|
// @router /:id [get]
|
||||||
func (o *WorkspaceController) Get() {
|
func (o *WorkspaceController) Get() {
|
||||||
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
id := o.Ctx.Input.Param(":id")
|
id := o.Ctx.Input.Param(":id")
|
||||||
o.Data["json"] = oclib.LoadOne(oclib.LibDataEnum(oclib.WORKSPACE), id)
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, nil).LoadOne(id)
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,9 +101,10 @@ func (o *WorkspaceController) Get() {
|
|||||||
// @Success 200 {workspace} delete success!
|
// @Success 200 {workspace} delete success!
|
||||||
// @router /:id [delete]
|
// @router /:id [delete]
|
||||||
func (o *WorkspaceController) Delete() {
|
func (o *WorkspaceController) Delete() {
|
||||||
|
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
|
||||||
id := o.Ctx.Input.Param(":id")
|
id := o.Ctx.Input.Param(":id")
|
||||||
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
caller := tools.NewHTTPCaller(paths) // generate a http caller to send to peer shared workspace
|
||||||
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
|
||||||
o.Data["json"] = oclib.DeleteOne(oclib.LibDataEnum(oclib.WORKSPACE), id, caller)
|
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.WORKSPACE), user, peerID, groups, caller).DeleteOne(id)
|
||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
0
docker-compose.base.yml
Normal file → Executable file
0
docker-compose.base.yml
Normal file → Executable file
0
docker-compose.yml
Normal file → Executable file
0
docker-compose.yml
Normal file → Executable file
0
docker_workspace.json
Normal file → Executable file
0
docker_workspace.json
Normal file → Executable file
5
go.mod
Normal file → Executable file
5
go.mod
Normal file → Executable file
@ -5,7 +5,7 @@ go 1.22.0
|
|||||||
toolchain go1.22.4
|
toolchain go1.22.4
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.o-forge.io/core/oc-lib v0.0.0-20250108155542-0f4adeea86be
|
cloud.o-forge.io/core/oc-lib v0.0.0-20250205160221-88b7cfe2fd0f
|
||||||
github.com/beego/beego/v2 v2.3.1
|
github.com/beego/beego/v2 v2.3.1
|
||||||
github.com/smartystreets/goconvey v1.7.2
|
github.com/smartystreets/goconvey v1.7.2
|
||||||
)
|
)
|
||||||
@ -14,6 +14,7 @@ require (
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/beorn7/perks v1.0.1 // indirect
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
|
github.com/biter777/countries v1.7.5 // indirect
|
||||||
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
||||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||||
github.com/gabriel-vasile/mimetype v1.4.6 // indirect
|
github.com/gabriel-vasile/mimetype v1.4.6 // indirect
|
||||||
@ -42,7 +43,7 @@ require (
|
|||||||
github.com/prometheus/client_model v0.6.1 // indirect
|
github.com/prometheus/client_model v0.6.1 // indirect
|
||||||
github.com/prometheus/common v0.60.1 // indirect
|
github.com/prometheus/common v0.60.1 // indirect
|
||||||
github.com/prometheus/procfs v0.15.1 // indirect
|
github.com/prometheus/procfs v0.15.1 // indirect
|
||||||
github.com/robfig/cron/v3 v3.0.1 // indirect
|
github.com/robfig/cron v1.2.0 // indirect
|
||||||
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||||
github.com/rs/zerolog v1.33.0 // indirect
|
github.com/rs/zerolog v1.33.0 // indirect
|
||||||
github.com/shiena/ansicolor v0.0.0-20230509054315-a9deabde6e02 // indirect
|
github.com/shiena/ansicolor v0.0.0-20230509054315-a9deabde6e02 // indirect
|
||||||
|
10
go.sum
Normal file → Executable file
10
go.sum
Normal file → Executable file
@ -1,10 +1,12 @@
|
|||||||
cloud.o-forge.io/core/oc-lib v0.0.0-20250108155542-0f4adeea86be h1:1Yf8ihUxXjOEPqcfgtXJpJ/slxBUHhf7AgS7DZI3iUk=
|
cloud.o-forge.io/core/oc-lib v0.0.0-20250205160221-88b7cfe2fd0f h1:6V+Z81ywYoDYSVMnM4PVaJYXFgCN3xSG3ddiUPn4jL8=
|
||||||
cloud.o-forge.io/core/oc-lib v0.0.0-20250108155542-0f4adeea86be/go.mod h1:ya7Q+zHhaKM+XF6sAJ+avqHEVzaMnFJQih2X3TlTlGo=
|
cloud.o-forge.io/core/oc-lib v0.0.0-20250205160221-88b7cfe2fd0f/go.mod h1:2roQbUpv3a6mTIr5oU1ux31WbN8YucyyQvCQ0FqwbcE=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/beego/beego/v2 v2.3.1 h1:7MUKMpJYzOXtCUsTEoXOxsDV/UcHw6CPbaWMlthVNsc=
|
github.com/beego/beego/v2 v2.3.1 h1:7MUKMpJYzOXtCUsTEoXOxsDV/UcHw6CPbaWMlthVNsc=
|
||||||
github.com/beego/beego/v2 v2.3.1/go.mod h1:5cqHsOHJIxkq44tBpRvtDe59GuVRVv/9/tyVDxd5ce4=
|
github.com/beego/beego/v2 v2.3.1/go.mod h1:5cqHsOHJIxkq44tBpRvtDe59GuVRVv/9/tyVDxd5ce4=
|
||||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||||
|
github.com/biter777/countries v1.7.5 h1:MJ+n3+rSxWQdqVJU8eBy9RqcdH6ePPn4PJHocVWUa+Q=
|
||||||
|
github.com/biter777/countries v1.7.5/go.mod h1:1HSpZ526mYqKJcpT5Ti1kcGQ0L0SrXWIaptUWjFfv2E=
|
||||||
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
||||||
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
github.com/coreos/etcd v3.3.17+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
github.com/coreos/etcd v3.3.17+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
||||||
@ -95,8 +97,8 @@ github.com/prometheus/common v0.60.1 h1:FUas6GcOw66yB/73KC+BOZoFJmbo/1pojoILArPA
|
|||||||
github.com/prometheus/common v0.60.1/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw=
|
github.com/prometheus/common v0.60.1/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw=
|
||||||
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
|
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
|
||||||
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
|
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
|
||||||
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
|
github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ=
|
||||||
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
|
github.com/robfig/cron v1.2.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k=
|
||||||
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
|
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
|
||||||
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
|
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
|
||||||
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
|
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
|
||||||
|
0
routers/commentsRouter.go
Normal file → Executable file
0
routers/commentsRouter.go
Normal file → Executable file
0
routers/router.go
Normal file → Executable file
0
routers/router.go
Normal file → Executable file
0
swagger/favicon-16x16.png
Normal file → Executable file
0
swagger/favicon-16x16.png
Normal file → Executable file
Before Width: | Height: | Size: 665 B After Width: | Height: | Size: 665 B |
0
swagger/favicon-32x32.png
Normal file → Executable file
0
swagger/favicon-32x32.png
Normal file → Executable file
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 628 B |
0
swagger/index.html
Normal file → Executable file
0
swagger/index.html
Normal file → Executable file
0
swagger/oauth2-redirect.html
Normal file → Executable file
0
swagger/oauth2-redirect.html
Normal file → Executable file
0
swagger/swagger-ui-bundle.js
Normal file → Executable file
0
swagger/swagger-ui-bundle.js
Normal file → Executable file
0
swagger/swagger-ui-bundle.js.map
Normal file → Executable file
0
swagger/swagger-ui-bundle.js.map
Normal file → Executable file
0
swagger/swagger-ui-es-bundle-core.js
Normal file → Executable file
0
swagger/swagger-ui-es-bundle-core.js
Normal file → Executable file
0
swagger/swagger-ui-es-bundle.js
Normal file → Executable file
0
swagger/swagger-ui-es-bundle.js
Normal file → Executable file
0
swagger/swagger-ui-standalone-preset.js
Normal file → Executable file
0
swagger/swagger-ui-standalone-preset.js
Normal file → Executable file
0
swagger/swagger-ui-standalone-preset.js.map
Normal file → Executable file
0
swagger/swagger-ui-standalone-preset.js.map
Normal file → Executable file
0
swagger/swagger-ui.css
Normal file → Executable file
0
swagger/swagger-ui.css
Normal file → Executable file
0
swagger/swagger-ui.css.map
Normal file → Executable file
0
swagger/swagger-ui.css.map
Normal file → Executable file
0
swagger/swagger-ui.js
Normal file → Executable file
0
swagger/swagger-ui.js
Normal file → Executable file
0
swagger/swagger-ui.js.map
Normal file → Executable file
0
swagger/swagger-ui.js.map
Normal file → Executable file
16
swagger/swagger.json
Normal file → Executable file
16
swagger/swagger.json
Normal file → Executable file
@ -22,6 +22,14 @@
|
|||||||
],
|
],
|
||||||
"description": "find workspace by id\n\u003cbr\u003e",
|
"description": "find workspace by id\n\u003cbr\u003e",
|
||||||
"operationId": "WorkspaceController.GetAll",
|
"operationId": "WorkspaceController.GetAll",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "is_draft",
|
||||||
|
"description": "draft wished",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "{workspace} models.workspace"
|
"description": "{workspace} models.workspace"
|
||||||
@ -66,6 +74,12 @@
|
|||||||
"description": "the word search you want to get",
|
"description": "the word search you want to get",
|
||||||
"required": true,
|
"required": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "is_draft",
|
||||||
|
"description": "draft wished",
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
@ -108,7 +122,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"oc-workspace/controllersWorkspaceController"
|
"oc-workspace/controllersWorkspaceController"
|
||||||
],
|
],
|
||||||
"description": "find workflow by id\n\u003cbr\u003e",
|
"description": "find workflow by idisDraft := o.Ctx.Input.Query(\"is_draft\")\n\u003cbr\u003e",
|
||||||
"operationId": "WorkspaceController.Get",
|
"operationId": "WorkspaceController.Get",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
11
swagger/swagger.yml
Normal file → Executable file
11
swagger/swagger.yml
Normal file → Executable file
@ -20,6 +20,11 @@ paths:
|
|||||||
find workspace by id
|
find workspace by id
|
||||||
<br>
|
<br>
|
||||||
operationId: WorkspaceController.GetAll
|
operationId: WorkspaceController.GetAll
|
||||||
|
parameters:
|
||||||
|
- in: query
|
||||||
|
name: is_draft
|
||||||
|
description: draft wished
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '{workspace} models.workspace'
|
description: '{workspace} models.workspace'
|
||||||
@ -45,7 +50,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- oc-workspace/controllersWorkspaceController
|
- oc-workspace/controllersWorkspaceController
|
||||||
description: |-
|
description: |-
|
||||||
find workflow by id
|
find workflow by idisDraft := o.Ctx.Input.Query("is_draft")
|
||||||
<br>
|
<br>
|
||||||
operationId: WorkspaceController.Get
|
operationId: WorkspaceController.Get
|
||||||
parameters:
|
parameters:
|
||||||
@ -109,6 +114,10 @@ paths:
|
|||||||
description: the word search you want to get
|
description: the word search you want to get
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: is_draft
|
||||||
|
description: draft wished
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '{workspace} models.workspace'
|
description: '{workspace} models.workspace'
|
||||||
|
0
tests/default_test.go
Normal file → Executable file
0
tests/default_test.go
Normal file → Executable file
0
workspace.json
Normal file → Executable file
0
workspace.json
Normal file → Executable file
Loading…
Reference in New Issue
Block a user