Skip to content

Commit

Permalink
Gitlab component kit backedn setup
Browse files Browse the repository at this point in the history
  • Loading branch information
samad-yar-khan committed Mar 25, 2022
1 parent 140f0ad commit 7266218
Show file tree
Hide file tree
Showing 23 changed files with 710 additions and 0 deletions.
1 change: 1 addition & 0 deletions cms/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
HOST=0.0.0.0
PORT=1337
GITLAB_TOKEN='gitlab_personal_access_token'
52 changes: 52 additions & 0 deletions cms/api/gitlab-issues/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/gitlab-issues",
"handler": "gitlab-issues.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-issues/count",
"handler": "gitlab-issues.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-issues/:id",
"handler": "gitlab-issues.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/gitlab-issues",
"handler": "gitlab-issues.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/gitlab-issues/:id",
"handler": "gitlab-issues.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/gitlab-issues/:id",
"handler": "gitlab-issues.delete",
"config": {
"policies": []
}
}
]
}
8 changes: 8 additions & 0 deletions cms/api/gitlab-issues/controllers/gitlab-issues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
8 changes: 8 additions & 0 deletions cms/api/gitlab-issues/models/gitlab-issues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};
22 changes: 22 additions & 0 deletions cms/api/gitlab-issues/models/gitlab-issues.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "gitlab_issues",
"info": {
"name": "GitlabIssues"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"gitlab_repository": {
"model": "gitlab-repositories",
"via": "gitlab_issue"
},
"issues": {
"type": "json"
}
}
}
8 changes: 8 additions & 0 deletions cms/api/gitlab-issues/services/gitlab-issues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};
52 changes: 52 additions & 0 deletions cms/api/gitlab-members/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/gitlab-members",
"handler": "gitlab-members.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-members/count",
"handler": "gitlab-members.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-members/:id",
"handler": "gitlab-members.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/gitlab-members",
"handler": "gitlab-members.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/gitlab-members/:id",
"handler": "gitlab-members.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/gitlab-members/:id",
"handler": "gitlab-members.delete",
"config": {
"policies": []
}
}
]
}
8 changes: 8 additions & 0 deletions cms/api/gitlab-members/controllers/gitlab-members.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
8 changes: 8 additions & 0 deletions cms/api/gitlab-members/models/gitlab-members.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};
22 changes: 22 additions & 0 deletions cms/api/gitlab-members/models/gitlab-members.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "gitlab_members",
"info": {
"name": "GitlabMembers"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"members": {
"type": "json"
},
"gitlab_repository": {
"model": "gitlab-repositories",
"via": "gitlab_member"
}
}
}
8 changes: 8 additions & 0 deletions cms/api/gitlab-members/services/gitlab-members.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};
52 changes: 52 additions & 0 deletions cms/api/gitlab-merge-requests/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/gitlab-merge-requests",
"handler": "gitlab-merge-requests.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-merge-requests/count",
"handler": "gitlab-merge-requests.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-merge-requests/:id",
"handler": "gitlab-merge-requests.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/gitlab-merge-requests",
"handler": "gitlab-merge-requests.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/gitlab-merge-requests/:id",
"handler": "gitlab-merge-requests.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/gitlab-merge-requests/:id",
"handler": "gitlab-merge-requests.delete",
"config": {
"policies": []
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
8 changes: 8 additions & 0 deletions cms/api/gitlab-merge-requests/models/gitlab-merge-requests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "gitlab_merge_requests",
"info": {
"name": "GitlabMergeRequests"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"merges": {
"type": "json"
},
"gitlab_repository": {
"model": "gitlab-repositories",
"via": "gitlab_merge_request"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};
52 changes: 52 additions & 0 deletions cms/api/gitlab-repositories/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/gitlab-repositories",
"handler": "gitlab-repositories.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-repositories/count",
"handler": "gitlab-repositories.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/gitlab-repositories/:id",
"handler": "gitlab-repositories.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/gitlab-repositories",
"handler": "gitlab-repositories.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/gitlab-repositories/:id",
"handler": "gitlab-repositories.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/gitlab-repositories/:id",
"handler": "gitlab-repositories.delete",
"config": {
"policies": []
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
8 changes: 8 additions & 0 deletions cms/api/gitlab-repositories/models/gitlab-repositories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};
Loading

0 comments on commit 7266218

Please sign in to comment.