From 9d4a4f5279fe178cba96068fc2e4453cdc02f672 Mon Sep 17 00:00:00 2001 From: Nirmal Khedkar Date: Sun, 16 May 2021 21:32:28 +0530 Subject: [PATCH] Status Update --- .../documentation/1.0.0/about-club.json | 14 +- api/bigname/config/routes.json | 28 + api/bigname/controllers/bigname.js | 8 + api/bigname/documentation/1.0.0/bigname.json | 354 +++ api/bigname/models/bigname.js | 8 + api/bigname/models/bigname.settings.json | 17 + api/bigname/services/bigname.js | 8 + api/blog/documentation/1.0.0/blog.json | 60 +- api/events/documentation/1.0.0/events.json | 24 +- api/members/documentation/1.0.0/members.json | 26 + .../documentation/1.0.0/project-reports.json | 37 +- api/project/documentation/1.0.0/project.json | 28 +- api/smp/documentation/1.0.0/smp.json | 26 +- .../documentation/1.0.0/summer-programs.json | 12 + api/wit/documentation/1.0.0/wit.json | 346 +++ components/about/contacts.json | 16 + .../1.0.0/full_documentation.json | 2571 +++++++++++------ package.json | 1 + plugins/mobile/.editorconfig | 7 + plugins/mobile/.gitattributes | 103 + plugins/mobile/.gitignore | 10 + plugins/mobile/README.md | 3 + .../mobile/admin/src/containers/App/index.js | 27 + .../admin/src/containers/HomePage/index.js | 20 + .../admin/src/containers/Initializer/index.js | 26 + plugins/mobile/admin/src/index.js | 52 + plugins/mobile/admin/src/lifecycles.js | 3 + plugins/mobile/admin/src/pluginId.js | 7 + plugins/mobile/admin/src/translations/ar.json | 1 + plugins/mobile/admin/src/translations/cs.json | 1 + plugins/mobile/admin/src/translations/de.json | 1 + plugins/mobile/admin/src/translations/en.json | 1 + plugins/mobile/admin/src/translations/es.json | 1 + plugins/mobile/admin/src/translations/fr.json | 1 + plugins/mobile/admin/src/translations/id.json | 1 + .../mobile/admin/src/translations/index.js | 49 + plugins/mobile/admin/src/translations/it.json | 1 + plugins/mobile/admin/src/translations/ko.json | 1 + plugins/mobile/admin/src/translations/ms.json | 1 + plugins/mobile/admin/src/translations/nl.json | 1 + plugins/mobile/admin/src/translations/pl.json | 1 + .../mobile/admin/src/translations/pt-BR.json | 1 + plugins/mobile/admin/src/translations/pt.json | 1 + plugins/mobile/admin/src/translations/ru.json | 1 + plugins/mobile/admin/src/translations/sk.json | 1 + plugins/mobile/admin/src/translations/th.json | 1 + plugins/mobile/admin/src/translations/tr.json | 1 + plugins/mobile/admin/src/translations/uk.json | 1 + plugins/mobile/admin/src/translations/vi.json | 1 + .../admin/src/translations/zh-Hans.json | 1 + plugins/mobile/admin/src/translations/zh.json | 1 + plugins/mobile/admin/src/utils/getTrad.js | 5 + plugins/mobile/config/routes.json | 20 + plugins/mobile/controllers/mobile.js | 59 + plugins/mobile/package.json | 28 + plugins/mobile/services/mobile.js | 11 + yarn.lock | 123 +- 57 files changed, 3306 insertions(+), 853 deletions(-) create mode 100644 api/bigname/config/routes.json create mode 100644 api/bigname/controllers/bigname.js create mode 100644 api/bigname/documentation/1.0.0/bigname.json create mode 100644 api/bigname/models/bigname.js create mode 100644 api/bigname/models/bigname.settings.json create mode 100644 api/bigname/services/bigname.js create mode 100644 api/wit/documentation/1.0.0/wit.json create mode 100644 components/about/contacts.json create mode 100644 plugins/mobile/.editorconfig create mode 100644 plugins/mobile/.gitattributes create mode 100644 plugins/mobile/.gitignore create mode 100644 plugins/mobile/README.md create mode 100644 plugins/mobile/admin/src/containers/App/index.js create mode 100644 plugins/mobile/admin/src/containers/HomePage/index.js create mode 100644 plugins/mobile/admin/src/containers/Initializer/index.js create mode 100644 plugins/mobile/admin/src/index.js create mode 100644 plugins/mobile/admin/src/lifecycles.js create mode 100644 plugins/mobile/admin/src/pluginId.js create mode 100644 plugins/mobile/admin/src/translations/ar.json create mode 100644 plugins/mobile/admin/src/translations/cs.json create mode 100644 plugins/mobile/admin/src/translations/de.json create mode 100644 plugins/mobile/admin/src/translations/en.json create mode 100644 plugins/mobile/admin/src/translations/es.json create mode 100644 plugins/mobile/admin/src/translations/fr.json create mode 100644 plugins/mobile/admin/src/translations/id.json create mode 100644 plugins/mobile/admin/src/translations/index.js create mode 100644 plugins/mobile/admin/src/translations/it.json create mode 100644 plugins/mobile/admin/src/translations/ko.json create mode 100644 plugins/mobile/admin/src/translations/ms.json create mode 100644 plugins/mobile/admin/src/translations/nl.json create mode 100644 plugins/mobile/admin/src/translations/pl.json create mode 100644 plugins/mobile/admin/src/translations/pt-BR.json create mode 100644 plugins/mobile/admin/src/translations/pt.json create mode 100644 plugins/mobile/admin/src/translations/ru.json create mode 100644 plugins/mobile/admin/src/translations/sk.json create mode 100644 plugins/mobile/admin/src/translations/th.json create mode 100644 plugins/mobile/admin/src/translations/tr.json create mode 100644 plugins/mobile/admin/src/translations/uk.json create mode 100644 plugins/mobile/admin/src/translations/vi.json create mode 100644 plugins/mobile/admin/src/translations/zh-Hans.json create mode 100644 plugins/mobile/admin/src/translations/zh.json create mode 100644 plugins/mobile/admin/src/utils/getTrad.js create mode 100644 plugins/mobile/config/routes.json create mode 100644 plugins/mobile/controllers/mobile.js create mode 100644 plugins/mobile/package.json create mode 100644 plugins/mobile/services/mobile.js diff --git a/api/about-club/documentation/1.0.0/about-club.json b/api/about-club/documentation/1.0.0/about-club.json index e610c81..315d39c 100644 --- a/api/about-club/documentation/1.0.0/about-club.json +++ b/api/about-club/documentation/1.0.0/about-club.json @@ -317,7 +317,9 @@ "schemas": { "About-club": { "required": [ - "id" + "id", + "main", + "footer" ], "properties": { "id": { @@ -331,10 +333,17 @@ }, "footer": { "type": "string" + }, + "topnavbar_marquee": { + "type": "string" } } }, "NewAbout-club": { + "required": [ + "main", + "footer" + ], "properties": { "main": { "type": "string" @@ -345,6 +354,9 @@ "footer": { "type": "string" }, + "topnavbar_marquee": { + "type": "string" + }, "created_by": { "type": "string" }, diff --git a/api/bigname/config/routes.json b/api/bigname/config/routes.json new file mode 100644 index 0000000..2d0e5b6 --- /dev/null +++ b/api/bigname/config/routes.json @@ -0,0 +1,28 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/bigname", + "handler": "bigname.find", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/bigname", + "handler": "bigname.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/bigname", + "handler": "bigname.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/bigname/controllers/bigname.js b/api/bigname/controllers/bigname.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/bigname/controllers/bigname.js @@ -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 = {}; diff --git a/api/bigname/documentation/1.0.0/bigname.json b/api/bigname/documentation/1.0.0/bigname.json new file mode 100644 index 0000000..3160c36 --- /dev/null +++ b/api/bigname/documentation/1.0.0/bigname.json @@ -0,0 +1,354 @@ +{ + "paths": { + "/bigname": { + "get": { + "deprecated": false, + "description": "Find all the bigname's records", + "responses": { + "200": { + "description": "Retrieve bigname document(s)", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Bigname" + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Bigname" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a single bigname record", + "responses": { + "200": { + "description": "Retrieve bigname document(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Bigname" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Bigname" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewBigname" + } + } + } + }, + "parameters": [] + }, + "delete": { + "deprecated": false, + "description": "Delete a single bigname record", + "responses": { + "200": { + "description": "deletes a single bigname based on the ID supplied", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Bigname" + ], + "parameters": [] + } + } + }, + "components": { + "schemas": { + "Bigname": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "efd": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + } + } + }, + "NewBigname": { + "properties": { + "efd": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + } + }, + "tags": [ + { + "name": "Bigname" + } + ] +} \ No newline at end of file diff --git a/api/bigname/models/bigname.js b/api/bigname/models/bigname.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/bigname/models/bigname.js @@ -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 = {}; diff --git a/api/bigname/models/bigname.settings.json b/api/bigname/models/bigname.settings.json new file mode 100644 index 0000000..e6079eb --- /dev/null +++ b/api/bigname/models/bigname.settings.json @@ -0,0 +1,17 @@ +{ + "kind": "singleType", + "collectionName": "SecondName", + "info": { + "name": "BIGNAME" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "efd": { + "type": "string" + } + } +} diff --git a/api/bigname/services/bigname.js b/api/bigname/services/bigname.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/bigname/services/bigname.js @@ -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 = {}; diff --git a/api/blog/documentation/1.0.0/blog.json b/api/blog/documentation/1.0.0/blog.json index 11df184..c8005bc 100644 --- a/api/blog/documentation/1.0.0/blog.json +++ b/api/blog/documentation/1.0.0/blog.json @@ -517,7 +517,11 @@ "Blog": { "required": [ "id", - "title" + "title", + "displayOnBlog", + "date", + "route", + "excerpt" ], "properties": { "id": { @@ -633,6 +637,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -642,6 +658,24 @@ } } }, + "displayOnBlog": { + "type": "boolean", + "default": true + }, + "date": { + "type": "string", + "format": "date", + "default": "2021-04-01T06:30:00.000Z" + }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "maxLength": 100, + "minLength": 20 + }, "published_at": { "type": "string", "format": "date-time" @@ -650,7 +684,11 @@ }, "NewBlog": { "required": [ - "title" + "title", + "displayOnBlog", + "date", + "route", + "excerpt" ], "properties": { "title": { @@ -665,6 +703,24 @@ "type": "string" } }, + "displayOnBlog": { + "type": "boolean", + "default": true + }, + "date": { + "type": "string", + "format": "date", + "default": "2021-04-01T06:30:00.000Z" + }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "maxLength": 100, + "minLength": 20 + }, "published_at": { "type": "string", "format": "date-time" diff --git a/api/events/documentation/1.0.0/events.json b/api/events/documentation/1.0.0/events.json index a3d0c27..d3c2e6f 100644 --- a/api/events/documentation/1.0.0/events.json +++ b/api/events/documentation/1.0.0/events.json @@ -518,7 +518,9 @@ "required": [ "id", "title", - "description" + "description", + "route", + "excerpt" ], "properties": { "id": { @@ -534,6 +536,14 @@ "type": "string", "format": "date" }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "minLength": 15 + }, "published_at": { "type": "string", "format": "date-time" @@ -543,7 +553,9 @@ "NewEvents": { "required": [ "title", - "description" + "description", + "route", + "excerpt" ], "properties": { "title": { @@ -556,6 +568,14 @@ "type": "string", "format": "date" }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "minLength": 15 + }, "published_at": { "type": "string", "format": "date-time" diff --git a/api/members/documentation/1.0.0/members.json b/api/members/documentation/1.0.0/members.json index 8738d4d..4b364ff 100644 --- a/api/members/documentation/1.0.0/members.json +++ b/api/members/documentation/1.0.0/members.json @@ -562,6 +562,9 @@ }, "phone": { "type": "integer" + }, + "email": { + "type": "string" } } }, @@ -599,6 +602,13 @@ } } } + }, + "rank": { + "type": "integer", + "default": 1000 + }, + "image": { + "type": "string" } } }, @@ -649,6 +659,9 @@ }, "phone": { "type": "integer" + }, + "email": { + "type": "string" } } }, @@ -658,6 +671,19 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer", + "default": 1000 + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, diff --git a/api/project-reports/documentation/1.0.0/project-reports.json b/api/project-reports/documentation/1.0.0/project-reports.json index 13126f1..d68cbb5 100644 --- a/api/project-reports/documentation/1.0.0/project-reports.json +++ b/api/project-reports/documentation/1.0.0/project-reports.json @@ -529,7 +529,9 @@ "schemas": { "Project-reports": { "required": [ - "id" + "id", + "excerpt", + "route" ], "properties": { "id": { @@ -572,6 +574,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -684,6 +698,9 @@ "type": "string" } }, + "url": { + "type": "string" + }, "published_at": { "type": "string" }, @@ -695,6 +712,13 @@ } } }, + "excerpt": { + "type": "string", + "minLength": 15 + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string", "format": "date-time" @@ -702,6 +726,10 @@ } }, "NewProject-reports": { + "required": [ + "excerpt", + "route" + ], "properties": { "authors": { "type": "array", @@ -715,6 +743,13 @@ "project": { "type": "string" }, + "excerpt": { + "type": "string", + "minLength": 15 + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string", "format": "date-time" diff --git a/api/project/documentation/1.0.0/project.json b/api/project/documentation/1.0.0/project.json index 5258766..243afa9 100644 --- a/api/project/documentation/1.0.0/project.json +++ b/api/project/documentation/1.0.0/project.json @@ -602,6 +602,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -615,7 +627,9 @@ "type": "array", "items": { "required": [ - "id" + "id", + "excerpt", + "route" ], "properties": { "id": { @@ -636,6 +650,12 @@ "project": { "type": "string" }, + "excerpt": { + "type": "string" + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string" }, @@ -648,6 +668,9 @@ } } }, + "url": { + "type": "string" + }, "published_at": { "type": "string", "format": "date-time" @@ -684,6 +707,9 @@ "type": "string" } }, + "url": { + "type": "string" + }, "published_at": { "type": "string", "format": "date-time" diff --git a/api/smp/documentation/1.0.0/smp.json b/api/smp/documentation/1.0.0/smp.json index b6686fd..38f4912 100644 --- a/api/smp/documentation/1.0.0/smp.json +++ b/api/smp/documentation/1.0.0/smp.json @@ -519,7 +519,8 @@ "id", "title", "description", - "url" + "url", + "year" ], "properties": { "id": { @@ -603,6 +604,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -612,6 +625,10 @@ } } }, + "year": { + "type": "integer", + "default": 2021 + }, "published_at": { "type": "string", "format": "date-time" @@ -622,7 +639,8 @@ "required": [ "title", "description", - "url" + "url", + "year" ], "properties": { "title": { @@ -643,6 +661,10 @@ "type": "string" } }, + "year": { + "type": "integer", + "default": 2021 + }, "published_at": { "type": "string", "format": "date-time" diff --git a/api/summer-programs/documentation/1.0.0/summer-programs.json b/api/summer-programs/documentation/1.0.0/summer-programs.json index f4e45c6..d7c8fbf 100644 --- a/api/summer-programs/documentation/1.0.0/summer-programs.json +++ b/api/summer-programs/documentation/1.0.0/summer-programs.json @@ -330,6 +330,12 @@ }, "description": { "type": "string" + }, + "faq": { + "type": "string" + }, + "form_url": { + "type": "string" } } }, @@ -345,6 +351,12 @@ "description": { "type": "string" }, + "faq": { + "type": "string" + }, + "form_url": { + "type": "string" + }, "created_by": { "type": "string" }, diff --git a/api/wit/documentation/1.0.0/wit.json b/api/wit/documentation/1.0.0/wit.json new file mode 100644 index 0000000..133dc0f --- /dev/null +++ b/api/wit/documentation/1.0.0/wit.json @@ -0,0 +1,346 @@ +{ + "paths": { + "/wit": { + "get": { + "deprecated": false, + "description": "Find all the wit's records", + "responses": { + "200": { + "description": "Retrieve wit document(s)", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Wit" + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Wit" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a single wit record", + "responses": { + "200": { + "description": "Retrieve wit document(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Wit" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Wit" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewWit" + } + } + } + }, + "parameters": [] + }, + "delete": { + "deprecated": false, + "description": "Delete a single wit record", + "responses": { + "200": { + "description": "deletes a single wit based on the ID supplied", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Wit" + ], + "parameters": [] + } + } + }, + "components": { + "schemas": { + "Wit": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "About": { + "type": "string" + } + } + }, + "NewWit": { + "properties": { + "About": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + } + }, + "tags": [ + { + "name": "Wit" + } + ] +} \ No newline at end of file diff --git a/components/about/contacts.json b/components/about/contacts.json new file mode 100644 index 0000000..48efc25 --- /dev/null +++ b/components/about/contacts.json @@ -0,0 +1,16 @@ +{ + "collectionName": "components_about_contacts", + "info": { + "name": "Contacts", + "icon": "address-card" + }, + "options": {}, + "attributes": { + "name": { + "type": "string" + }, + "phone": { + "type": "biginteger" + } + } +} diff --git a/extensions/documentation/documentation/1.0.0/full_documentation.json b/extensions/documentation/documentation/1.0.0/full_documentation.json index 7c3c2e9..7994515 100644 --- a/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "04/14/2021 1:58:23 PM" + "x-generation-date": "05/16/2021 8:02:07 PM" }, "x-strapi-config": { "path": "/documentation", @@ -357,19 +357,19 @@ "parameters": [] } }, - "/blogs": { + "/bigname": { "get": { "deprecated": false, - "description": "", + "description": "Find all the bigname's records", "responses": { "200": { - "description": "response", + "description": "Retrieve bigname document(s)", "content": { "application/json": { "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Blog" + "$ref": "#/components/schemas/Bigname" } } } @@ -408,7 +408,7 @@ }, "summary": "", "tags": [ - "Blog" + "Bigname" ], "parameters": [ { @@ -549,198 +549,16 @@ } ] }, - "post": { - "deprecated": false, - "description": "Create a new record", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Blog" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Blog" - ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NewBlog" - } - } - } - } - } - }, - "/blogs/count": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "count": { - "type": "integer" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Blog" - ], - "parameters": [] - } - }, - "/blogs/{id}": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Blog" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Blog" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] - }, "put": { "deprecated": false, - "description": "Update a record", + "description": "Update a single bigname record", "responses": { "200": { - "description": "response", + "description": "Retrieve bigname document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Blog" + "$ref": "#/components/schemas/Bigname" } } } @@ -778,7 +596,7 @@ }, "summary": "", "tags": [ - "Blog" + "Bigname" ], "requestBody": { "description": "", @@ -786,30 +604,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewBlog" + "$ref": "#/components/schemas/NewBigname" } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] }, "delete": { "deprecated": false, - "description": "Delete a record", + "description": "Delete a single bigname record", "responses": { "200": { - "description": "deletes a single record based on the ID supplied", + "description": "deletes a single bigname based on the ID supplied", "content": { "application/json": { "schema": { @@ -852,35 +659,24 @@ }, "summary": "", "tags": [ - "Blog" + "Bigname" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] } }, - "/events": { + "/blogs": { "get": { "deprecated": false, - "description": "Find all the events's records", + "description": "", "responses": { "200": { - "description": "Retrieve events document(s)", + "description": "response", "content": { "application/json": { "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Events" + "$ref": "#/components/schemas/Blog" } } } @@ -919,7 +715,7 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "parameters": [ { @@ -1062,14 +858,14 @@ }, "post": { "deprecated": false, - "description": "Create a new events record", + "description": "Create a new record", "responses": { "200": { - "description": "Retrieve events document(s)", + "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Events" + "$ref": "#/components/schemas/Blog" } } } @@ -1107,7 +903,7 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "requestBody": { "description": "", @@ -1115,20 +911,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewEvents" + "$ref": "#/components/schemas/NewBlog" } } } } } }, - "/events/count": { + "/blogs/count": { "get": { "deprecated": false, - "description": "Retrieve the numver of events documents", + "description": "", "responses": { "200": { - "description": "Retrieve events document(s)", + "description": "response", "content": { "application/json": { "schema": { @@ -1174,22 +970,22 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "parameters": [] } }, - "/events/{id}": { + "/blogs/{id}": { "get": { "deprecated": false, - "description": "Find one events record", + "description": "", "responses": { "200": { - "description": "Retrieve events document(s)", + "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Events" + "$ref": "#/components/schemas/Blog" } } } @@ -1227,7 +1023,7 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "parameters": [ { @@ -1244,14 +1040,14 @@ }, "put": { "deprecated": false, - "description": "Update a single events record", + "description": "Update a record", "responses": { "200": { - "description": "Retrieve events document(s)", + "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Events" + "$ref": "#/components/schemas/Blog" } } } @@ -1289,7 +1085,7 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "requestBody": { "description": "", @@ -1297,7 +1093,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewEvents" + "$ref": "#/components/schemas/NewBlog" } } } @@ -1317,10 +1113,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a single events record", + "description": "Delete a record", "responses": { "200": { - "description": "deletes a single events based on the ID supplied", + "description": "deletes a single record based on the ID supplied", "content": { "application/json": { "schema": { @@ -1363,7 +1159,7 @@ }, "summary": "", "tags": [ - "Events" + "Blog" ], "parameters": [ { @@ -1379,19 +1175,19 @@ ] } }, - "/expo": { + "/events": { "get": { "deprecated": false, - "description": "Find all the expo's records", + "description": "Find all the events's records", "responses": { "200": { - "description": "Retrieve expo document(s)", + "description": "Retrieve events document(s)", "content": { "application/json": { "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Expo" + "$ref": "#/components/schemas/Events" } } } @@ -1430,7 +1226,7 @@ }, "summary": "", "tags": [ - "Expo" + "Events" ], "parameters": [ { @@ -1571,16 +1367,16 @@ } ] }, - "put": { + "post": { "deprecated": false, - "description": "Update a single expo record", + "description": "Create a new events record", "responses": { "200": { - "description": "Retrieve expo document(s)", + "description": "Retrieve events document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Expo" + "$ref": "#/components/schemas/Events" } } } @@ -1618,7 +1414,7 @@ }, "summary": "", "tags": [ - "Expo" + "Events" ], "requestBody": { "description": "", @@ -1626,24 +1422,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewExpo" + "$ref": "#/components/schemas/NewEvents" } } } - }, - "parameters": [] - }, - "delete": { + } + } + }, + "/events/count": { + "get": { "deprecated": false, - "description": "Delete a single expo record", + "description": "Retrieve the numver of events documents", "responses": { "200": { - "description": "deletes a single expo based on the ID supplied", + "description": "Retrieve events document(s)", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "properties": { + "count": { + "type": "integer" + } + } } } } @@ -1681,25 +1481,22 @@ }, "summary": "", "tags": [ - "Expo" + "Events" ], "parameters": [] } }, - "/members": { + "/events/{id}": { "get": { "deprecated": false, - "description": "Find all the members's records", + "description": "Find one events record", "responses": { "200": { - "description": "Retrieve members document(s)", + "description": "Retrieve events document(s)", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Members" - } + "$ref": "#/components/schemas/Events" } } } @@ -1737,157 +1534,31 @@ }, "summary": "", "tags": [ - "Members" + "Events" ], "parameters": [ { - "name": "_limit", - "in": "query", - "required": false, - "description": "Maximum number of results possible", - "schema": { - "type": "integer" - }, - "deprecated": false - }, - { - "name": "_sort", - "in": "query", - "required": false, - "description": "Sort according to a specific field.", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_start", - "in": "query", - "required": false, - "description": "Skip a specific number of entries (especially useful for pagination)", - "schema": { - "type": "integer" - }, - "deprecated": false - }, - { - "name": "=", - "in": "query", - "required": false, - "description": "Get entries that matches exactly your input", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_ne", - "in": "query", - "required": false, - "description": "Get records that are not equals to something", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_lt", - "in": "query", - "required": false, - "description": "Get record that are lower than a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_lte", - "in": "query", - "required": false, - "description": "Get records that are lower than or equal to a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_gt", - "in": "query", - "required": false, - "description": "Get records that are greater than a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_gte", - "in": "query", - "required": false, - "description": "Get records that are greater than or equal a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_contains", - "in": "query", - "required": false, - "description": "Get records that contains a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_containss", - "in": "query", - "required": false, - "description": "Get records that contains (case sensitive) a value", + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, "schema": { "type": "string" - }, - "deprecated": false - }, - { - "name": "_in", - "in": "query", - "required": false, - "description": "Get records that matches any value in the array of values", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "deprecated": false - }, - { - "name": "_nin", - "in": "query", - "required": false, - "description": "Get records that doesn't match any value in the array of values", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "deprecated": false + } } ] }, - "post": { + "put": { "deprecated": false, - "description": "Create a new members record", + "description": "Update a single events record", "responses": { "200": { - "description": "Retrieve members document(s)", + "description": "Retrieve events document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Members" + "$ref": "#/components/schemas/Events" } } } @@ -1925,7 +1596,7 @@ }, "summary": "", "tags": [ - "Members" + "Events" ], "requestBody": { "description": "", @@ -1933,29 +1604,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewMembers" + "$ref": "#/components/schemas/NewEvents" } } } - } - } - }, - "/members/count": { - "get": { + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { "deprecated": false, - "description": "Retrieve the numver of members documents", + "description": "Delete a single events record", "responses": { "200": { - "description": "Retrieve members document(s)", + "description": "deletes a single events based on the ID supplied", "content": { "application/json": { "schema": { - "properties": { - "count": { - "type": "integer" - } - } - } + "type": "integer", + "format": "int64" + } } } }, @@ -1992,22 +1670,36 @@ }, "summary": "", "tags": [ - "Members" + "Events" ], - "parameters": [] + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] } }, - "/members/{id}": { + "/expo": { "get": { "deprecated": false, - "description": "Find one members record", + "description": "Find all the expo's records", "responses": { "200": { - "description": "Retrieve members document(s)", + "description": "Retrieve expo document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Members" + "type": "array", + "items": { + "$ref": "#/components/schemas/Expo" + } } } } @@ -2045,31 +1737,157 @@ }, "summary": "", "tags": [ - "Members" + "Expo" ], "parameters": [ { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", "schema": { "type": "string" - } + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false } ] }, "put": { "deprecated": false, - "description": "Update a single members record", + "description": "Update a single expo record", "responses": { "200": { - "description": "Retrieve members document(s)", + "description": "Retrieve expo document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Members" + "$ref": "#/components/schemas/Expo" } } } @@ -2107,7 +1925,7 @@ }, "summary": "", "tags": [ - "Members" + "Expo" ], "requestBody": { "description": "", @@ -2115,30 +1933,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewMembers" + "$ref": "#/components/schemas/NewExpo" } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] }, "delete": { "deprecated": false, - "description": "Delete a single members record", + "description": "Delete a single expo record", "responses": { "200": { - "description": "deletes a single members based on the ID supplied", + "description": "deletes a single expo based on the ID supplied", "content": { "application/json": { "schema": { @@ -2181,36 +1988,24 @@ }, "summary": "", "tags": [ - "Members" + "Expo" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] } }, - "/project-reports": { + "/members": { "get": { "deprecated": false, - "description": "Find all the project-reports's records", + "description": "Find all the members's records", "responses": { "200": { - "description": "Retrieve project-reports document(s)", + "description": "Retrieve members document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Members" } } } @@ -2249,7 +2044,7 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "parameters": [ { @@ -2392,18 +2187,14 @@ }, "post": { "deprecated": false, - "description": "Create a new project-reports record", + "description": "Create a new members record", "responses": { "200": { - "description": "Retrieve project-reports document(s)", + "description": "Retrieve members document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Members" } } } @@ -2441,7 +2232,7 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "requestBody": { "description": "", @@ -2449,26 +2240,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewProject-reports" + "$ref": "#/components/schemas/NewMembers" } } } } } }, - "/project-reports/count": { + "/members/count": { "get": { "deprecated": false, - "description": "Retrieve the numver of project-reports documents", + "description": "Retrieve the numver of members documents", "responses": { "200": { - "description": "Retrieve project-reports document(s)", + "description": "Retrieve members document(s)", "content": { "application/json": { "schema": { "properties": { - "foo": { - "type": "string" + "count": { + "type": "integer" } } } @@ -2508,26 +2299,22 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "parameters": [] } }, - "/project-reports/{id}": { + "/members/{id}": { "get": { "deprecated": false, - "description": "Find one project-reports record", + "description": "Find one members record", "responses": { "200": { - "description": "Retrieve project-reports document(s)", + "description": "Retrieve members document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Members" } } } @@ -2565,7 +2352,7 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "parameters": [ { @@ -2582,18 +2369,14 @@ }, "put": { "deprecated": false, - "description": "Update a single project-reports record", + "description": "Update a single members record", "responses": { "200": { - "description": "Retrieve project-reports document(s)", + "description": "Retrieve members document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Members" } } } @@ -2631,7 +2414,7 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "requestBody": { "description": "", @@ -2639,7 +2422,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewProject-reports" + "$ref": "#/components/schemas/NewMembers" } } } @@ -2659,10 +2442,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a single project-reports record", + "description": "Delete a single members record", "responses": { "200": { - "description": "deletes a single project-reports based on the ID supplied", + "description": "deletes a single members based on the ID supplied", "content": { "application/json": { "schema": { @@ -2705,7 +2488,7 @@ }, "summary": "", "tags": [ - "Project-reports" + "Members" ], "parameters": [ { @@ -2721,19 +2504,20 @@ ] } }, - "/projects": { + "/project-reports": { "get": { "deprecated": false, - "description": "", + "description": "Find all the project-reports's records", "responses": { "200": { - "description": "response", + "description": "Retrieve project-reports document(s)", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Project" + "properties": { + "foo": { + "type": "string" + } } } } @@ -2772,7 +2556,7 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "parameters": [ { @@ -2915,14 +2699,18 @@ }, "post": { "deprecated": false, - "description": "Create a new record", + "description": "Create a new project-reports record", "responses": { "200": { - "description": "response", + "description": "Retrieve project-reports document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Project" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -2960,7 +2748,7 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "requestBody": { "description": "", @@ -2968,26 +2756,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewProject" + "$ref": "#/components/schemas/NewProject-reports" } } } } } }, - "/projects/count": { + "/project-reports/count": { "get": { "deprecated": false, - "description": "", + "description": "Retrieve the numver of project-reports documents", "responses": { "200": { - "description": "response", + "description": "Retrieve project-reports document(s)", "content": { "application/json": { "schema": { "properties": { - "count": { - "type": "integer" + "foo": { + "type": "string" } } } @@ -3027,22 +2815,26 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "parameters": [] } }, - "/projects/{id}": { + "/project-reports/{id}": { "get": { "deprecated": false, - "description": "", + "description": "Find one project-reports record", "responses": { "200": { - "description": "response", + "description": "Retrieve project-reports document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Project" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -3080,7 +2872,7 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "parameters": [ { @@ -3097,14 +2889,18 @@ }, "put": { "deprecated": false, - "description": "Update a record", + "description": "Update a single project-reports record", "responses": { "200": { - "description": "response", + "description": "Retrieve project-reports document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Project" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -3142,7 +2938,7 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "requestBody": { "description": "", @@ -3150,7 +2946,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewProject" + "$ref": "#/components/schemas/NewProject-reports" } } } @@ -3170,10 +2966,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a record", + "description": "Delete a single project-reports record", "responses": { "200": { - "description": "deletes a single record based on the ID supplied", + "description": "deletes a single project-reports based on the ID supplied", "content": { "application/json": { "schema": { @@ -3216,7 +3012,7 @@ }, "summary": "", "tags": [ - "Project" + "Project-reports" ], "parameters": [ { @@ -3232,20 +3028,19 @@ ] } }, - "/recruitment-faq": { + "/projects": { "get": { "deprecated": false, - "description": "Find all the recruitment-faq's records", + "description": "", "responses": { "200": { - "description": "Retrieve recruitment-faq document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Project" } } } @@ -3284,7 +3079,7 @@ }, "summary": "", "tags": [ - "Recruitment-faq" + "Project" ], "parameters": [ { @@ -3425,20 +3220,16 @@ } ] }, - "put": { + "post": { "deprecated": false, - "description": "Update a single recruitment-faq record", + "description": "Create a new record", "responses": { "200": { - "description": "Retrieve recruitment-faq document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Project" } } } @@ -3476,7 +3267,7 @@ }, "summary": "", "tags": [ - "Recruitment-faq" + "Project" ], "requestBody": { "description": "", @@ -3484,19 +3275,1035 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewRecruitment-faq" + "$ref": "#/components/schemas/NewProject" + } + } + } + } + } + }, + "/projects/count": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "count": { + "type": "integer" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Project" + ], + "parameters": [] + } + }, + "/projects/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Project" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } - }, - "parameters": [] + }, + "summary": "", + "tags": [ + "Project" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Project" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Project" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewProject" + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "deprecated": false, + "description": "Delete a record", + "responses": { + "200": { + "description": "deletes a single record based on the ID supplied", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Project" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/recruitment-faq": { + "get": { + "deprecated": false, + "description": "Find all the recruitment-faq's records", + "responses": { + "200": { + "description": "Retrieve recruitment-faq document(s)", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Recruitment-faq" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a single recruitment-faq record", + "responses": { + "200": { + "description": "Retrieve recruitment-faq document(s)", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Recruitment-faq" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewRecruitment-faq" + } + } + } + }, + "parameters": [] + }, + "delete": { + "deprecated": false, + "description": "Delete a single recruitment-faq record", + "responses": { + "200": { + "description": "deletes a single recruitment-faq based on the ID supplied", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Recruitment-faq" + ], + "parameters": [] + } + }, + "/sigs": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sig" + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sig" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + }, + "post": { + "deprecated": false, + "description": "Create a new record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Sig" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sig" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewSig" + } + } + } + } + } + }, + "/sigs/count": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "count": { + "type": "integer" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sig" + ], + "parameters": [] + } + }, + "/sigs/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Sig" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sig" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Sig" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sig" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewSig" + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] }, "delete": { "deprecated": false, - "description": "Delete a single recruitment-faq record", + "description": "Delete a record", "responses": { "200": { - "description": "deletes a single recruitment-faq based on the ID supplied", + "description": "deletes a single record based on the ID supplied", "content": { "application/json": { "schema": { @@ -3539,12 +4346,23 @@ }, "summary": "", "tags": [ - "Recruitment-faq" + "Sig" ], - "parameters": [] + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] } }, - "/sigs": { + "/smps": { "get": { "deprecated": false, "description": "", @@ -3556,7 +4374,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Sig" + "$ref": "#/components/schemas/Smp" } } } @@ -3595,7 +4413,7 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "parameters": [ { @@ -3745,7 +4563,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sig" + "$ref": "#/components/schemas/Smp" } } } @@ -3783,7 +4601,7 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "requestBody": { "description": "", @@ -3791,14 +4609,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSig" + "$ref": "#/components/schemas/NewSmp" } } } } } }, - "/sigs/count": { + "/smps/count": { "get": { "deprecated": false, "description": "", @@ -3850,12 +4668,12 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "parameters": [] } }, - "/sigs/{id}": { + "/smps/{id}": { "get": { "deprecated": false, "description": "", @@ -3865,7 +4683,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sig" + "$ref": "#/components/schemas/Smp" } } } @@ -3903,7 +4721,7 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "parameters": [ { @@ -3927,7 +4745,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sig" + "$ref": "#/components/schemas/Smp" } } } @@ -3965,7 +4783,7 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "requestBody": { "description": "", @@ -3973,7 +4791,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSig" + "$ref": "#/components/schemas/NewSmp" } } } @@ -4039,7 +4857,7 @@ }, "summary": "", "tags": [ - "Sig" + "Smp" ], "parameters": [ { @@ -4055,19 +4873,20 @@ ] } }, - "/smps": { + "/summer-programs": { "get": { "deprecated": false, - "description": "", + "description": "Find all the summer-programs's records", "responses": { "200": { - "description": "response", + "description": "Retrieve summer-programs document(s)", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Smp" + "properties": { + "foo": { + "type": "string" + } } } } @@ -4106,7 +4925,7 @@ }, "summary": "", "tags": [ - "Smp" + "Summer-programs" ], "parameters": [ { @@ -4238,207 +5057,29 @@ "required": false, "description": "Get records that doesn't match any value in the array of values", "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "deprecated": false - } - ] - }, - "post": { - "deprecated": false, - "description": "Create a new record", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Smp" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Smp" - ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NewSmp" - } - } - } - } - } - }, - "/smps/count": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "count": { - "type": "integer" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Smp" - ], - "parameters": [] - } - }, - "/smps/{id}": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Smp" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Smp" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false } ] }, "put": { "deprecated": false, - "description": "Update a record", + "description": "Update a single summer-programs record", "responses": { "200": { - "description": "response", + "description": "Retrieve summer-programs document(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Smp" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -4476,7 +5117,7 @@ }, "summary": "", "tags": [ - "Smp" + "Summer-programs" ], "requestBody": { "description": "", @@ -4484,30 +5125,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSmp" + "$ref": "#/components/schemas/NewSummer-programs" } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] }, "delete": { "deprecated": false, - "description": "Delete a record", + "description": "Delete a single summer-programs record", "responses": { "200": { - "description": "deletes a single record based on the ID supplied", + "description": "deletes a single summer-programs based on the ID supplied", "content": { "application/json": { "schema": { @@ -4550,36 +5180,24 @@ }, "summary": "", "tags": [ - "Smp" + "Summer-programs" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] + "parameters": [] } }, - "/summer-programs": { + "/wit": { "get": { "deprecated": false, - "description": "Find all the summer-programs's records", + "description": "Find all the wit's records", "responses": { "200": { - "description": "Retrieve summer-programs document(s)", + "description": "Retrieve wit document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Wit" } } } @@ -4618,7 +5236,7 @@ }, "summary": "", "tags": [ - "Summer-programs" + "Wit" ], "parameters": [ { @@ -4761,18 +5379,14 @@ }, "put": { "deprecated": false, - "description": "Update a single summer-programs record", + "description": "Update a single wit record", "responses": { "200": { - "description": "Retrieve summer-programs document(s)", + "description": "Retrieve wit document(s)", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Wit" } } } @@ -4810,7 +5424,7 @@ }, "summary": "", "tags": [ - "Summer-programs" + "Wit" ], "requestBody": { "description": "", @@ -4818,7 +5432,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSummer-programs" + "$ref": "#/components/schemas/NewWit" } } } @@ -4827,10 +5441,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a single summer-programs record", + "description": "Delete a single wit record", "responses": { "200": { - "description": "deletes a single summer-programs based on the ID supplied", + "description": "deletes a single wit based on the ID supplied", "content": { "application/json": { "schema": { @@ -4873,7 +5487,7 @@ }, "summary": "", "tags": [ - "Summer-programs" + "Wit" ], "parameters": [] } @@ -7109,7 +7723,9 @@ "schemas": { "About-club": { "required": [ - "id" + "id", + "main", + "footer" ], "properties": { "id": { @@ -7123,10 +7739,17 @@ }, "footer": { "type": "string" + }, + "topnavbar_marquee": { + "type": "string" } } }, "NewAbout-club": { + "required": [ + "main", + "footer" + ], "properties": { "main": { "type": "string" @@ -7137,6 +7760,43 @@ "footer": { "type": "string" }, + "topnavbar_marquee": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "Bigname": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "efd": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + } + } + }, + "NewBigname": { + "properties": { + "efd": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + }, "created_by": { "type": "string" }, @@ -7148,7 +7808,11 @@ "Blog": { "required": [ "id", - "title" + "title", + "displayOnBlog", + "date", + "route", + "excerpt" ], "properties": { "id": { @@ -7264,6 +7928,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -7273,6 +7949,24 @@ } } }, + "displayOnBlog": { + "type": "boolean", + "default": true + }, + "date": { + "type": "string", + "format": "date", + "default": "2021-04-01T06:30:00.000Z" + }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "maxLength": 100, + "minLength": 20 + }, "published_at": { "type": "string", "format": "date-time" @@ -7281,7 +7975,11 @@ }, "NewBlog": { "required": [ - "title" + "title", + "displayOnBlog", + "date", + "route", + "excerpt" ], "properties": { "title": { @@ -7296,6 +7994,24 @@ "type": "string" } }, + "displayOnBlog": { + "type": "boolean", + "default": true + }, + "date": { + "type": "string", + "format": "date", + "default": "2021-04-01T06:30:00.000Z" + }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "maxLength": 100, + "minLength": 20 + }, "published_at": { "type": "string", "format": "date-time" @@ -7312,7 +8028,9 @@ "required": [ "id", "title", - "description" + "description", + "route", + "excerpt" ], "properties": { "id": { @@ -7328,6 +8046,14 @@ "type": "string", "format": "date" }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "minLength": 15 + }, "published_at": { "type": "string", "format": "date-time" @@ -7337,7 +8063,9 @@ "NewEvents": { "required": [ "title", - "description" + "description", + "route", + "excerpt" ], "properties": { "title": { @@ -7350,6 +8078,14 @@ "type": "string", "format": "date" }, + "route": { + "type": "uid", + "maxLength": 15 + }, + "excerpt": { + "type": "string", + "minLength": 15 + }, "published_at": { "type": "string", "format": "date-time" @@ -7448,6 +8184,9 @@ }, "phone": { "type": "integer" + }, + "email": { + "type": "string" } } }, @@ -7485,6 +8224,13 @@ } } } + }, + "rank": { + "type": "integer", + "default": 1000 + }, + "image": { + "type": "string" } } }, @@ -7535,6 +8281,9 @@ }, "phone": { "type": "integer" + }, + "email": { + "type": "string" } } }, @@ -7544,6 +8293,19 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer", + "default": 1000 + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -7554,7 +8316,9 @@ }, "Project-reports": { "required": [ - "id" + "id", + "excerpt", + "route" ], "properties": { "id": { @@ -7597,6 +8361,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -7709,6 +8485,9 @@ "type": "string" } }, + "url": { + "type": "string" + }, "published_at": { "type": "string" }, @@ -7720,6 +8499,13 @@ } } }, + "excerpt": { + "type": "string", + "minLength": 15 + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string", "format": "date-time" @@ -7727,6 +8513,10 @@ } }, "NewProject-reports": { + "required": [ + "excerpt", + "route" + ], "properties": { "authors": { "type": "array", @@ -7740,6 +8530,13 @@ "project": { "type": "string" }, + "excerpt": { + "type": "string", + "minLength": 15 + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string", "format": "date-time" @@ -7840,6 +8637,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -7853,7 +8662,9 @@ "type": "array", "items": { "required": [ - "id" + "id", + "excerpt", + "route" ], "properties": { "id": { @@ -7874,6 +8685,12 @@ "project": { "type": "string" }, + "excerpt": { + "type": "string" + }, + "route": { + "type": "uid" + }, "published_at": { "type": "string" }, @@ -7886,6 +8703,9 @@ } } }, + "url": { + "type": "string" + }, "published_at": { "type": "string", "format": "date-time" @@ -7922,6 +8742,9 @@ "type": "string" } }, + "url": { + "type": "string" + }, "published_at": { "type": "string", "format": "date-time" @@ -8101,7 +8924,8 @@ "id", "title", "description", - "url" + "url", + "year" ], "properties": { "id": { @@ -8185,6 +9009,18 @@ "type": "string" } }, + "internship": { + "type": "string" + }, + "placements": { + "type": "string" + }, + "rank": { + "type": "integer" + }, + "image": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -8194,6 +9030,10 @@ } } }, + "year": { + "type": "integer", + "default": 2021 + }, "published_at": { "type": "string", "format": "date-time" @@ -8204,7 +9044,8 @@ "required": [ "title", "description", - "url" + "url", + "year" ], "properties": { "title": { @@ -8225,6 +9066,10 @@ "type": "string" } }, + "year": { + "type": "integer", + "default": 2021 + }, "published_at": { "type": "string", "format": "date-time" @@ -8252,6 +9097,12 @@ }, "description": { "type": "string" + }, + "faq": { + "type": "string" + }, + "form_url": { + "type": "string" } } }, @@ -8267,6 +9118,38 @@ "description": { "type": "string" }, + "faq": { + "type": "string" + }, + "form_url": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "Wit": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "About": { + "type": "string" + } + } + }, + "NewWit": { + "properties": { + "About": { + "type": "string" + }, "created_by": { "type": "string" }, @@ -8620,6 +9503,9 @@ } }, "tags": [ + { + "name": "Bigname" + }, { "name": "Blog" }, @@ -8641,6 +9527,9 @@ { "name": "Smp" }, + { + "name": "Wit" + }, { "name": "Email - Email" }, diff --git a/package.json b/package.json index fecc02a..8ff30db 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "strapi-connector-bookshelf": "3.5.4", "strapi-plugin-content-manager": "3.5.4", "strapi-plugin-content-type-builder": "3.5.4", + "strapi-plugin-documentation": "3.5.4", "strapi-plugin-email": "3.5.4", "strapi-plugin-graphql": "3.5.4", "strapi-plugin-upload": "3.5.4", diff --git a/plugins/mobile/.editorconfig b/plugins/mobile/.editorconfig new file mode 100644 index 0000000..d4eed84 --- /dev/null +++ b/plugins/mobile/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = false +indent_style = space +indent_size = 2 diff --git a/plugins/mobile/.gitattributes b/plugins/mobile/.gitattributes new file mode 100644 index 0000000..065a11c --- /dev/null +++ b/plugins/mobile/.gitattributes @@ -0,0 +1,103 @@ +# From https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes + +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# +# The above will handle all files NOT found below +# + +# +## These files are text and should be normalized (Convert crlf => lf) +# + +# source code +*.php text +*.css text +*.sass text +*.scss text +*.less text +*.styl text +*.js text eol=lf +*.coffee text +*.json text +*.htm text +*.html text +*.xml text +*.svg text +*.txt text +*.ini text +*.inc text +*.pl text +*.rb text +*.py text +*.scm text +*.sql text +*.sh text +*.bat text + +# templates +*.ejs text +*.hbt text +*.jade text +*.haml text +*.hbs text +*.dot text +*.tmpl text +*.phtml text + +# git config +.gitattributes text +.gitignore text +.gitconfig text + +# code analysis config +.jshintrc text +.jscsrc text +.jshintignore text +.csslintrc text + +# misc config +*.yaml text +*.yml text +.editorconfig text + +# build config +*.npmignore text +*.bowerrc text + +# Heroku +Procfile text +.slugignore text + +# Documentation +*.md text +LICENSE text +AUTHORS text + + +# +## These files are binary and should be left untouched +# + +# (binary is a macro for -text -diff) +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.flv binary +*.fla binary +*.swf binary +*.gz binary +*.zip binary +*.7z binary +*.ttf binary +*.eot binary +*.woff binary +*.pyc binary +*.pdf binary diff --git a/plugins/mobile/.gitignore b/plugins/mobile/.gitignore new file mode 100644 index 0000000..afe256b --- /dev/null +++ b/plugins/mobile/.gitignore @@ -0,0 +1,10 @@ +# Don't check auto-generated stuff into git +coverage +node_modules +stats.json +package-lock.json + +# Cruft +.DS_Store +npm-debug.log +.idea diff --git a/plugins/mobile/README.md b/plugins/mobile/README.md new file mode 100644 index 0000000..49e8515 --- /dev/null +++ b/plugins/mobile/README.md @@ -0,0 +1,3 @@ +# Strapi plugin mobile + +A quick description of mobile. diff --git a/plugins/mobile/admin/src/containers/App/index.js b/plugins/mobile/admin/src/containers/App/index.js new file mode 100644 index 0000000..9755fb0 --- /dev/null +++ b/plugins/mobile/admin/src/containers/App/index.js @@ -0,0 +1,27 @@ +/** + * + * This component is the skeleton around the actual pages, and should only + * contain code that should be seen on all pages. (e.g. navigation bar) + * + */ + +import React from 'react'; +import { Switch, Route } from 'react-router-dom'; +import { NotFound } from 'strapi-helper-plugin'; +// Utils +import pluginId from '../../pluginId'; +// Containers +import HomePage from '../HomePage'; + +const App = () => { + return ( +
+ + + + +
+ ); +}; + +export default App; diff --git a/plugins/mobile/admin/src/containers/HomePage/index.js b/plugins/mobile/admin/src/containers/HomePage/index.js new file mode 100644 index 0000000..05c5a6a --- /dev/null +++ b/plugins/mobile/admin/src/containers/HomePage/index.js @@ -0,0 +1,20 @@ +/* + * + * HomePage + * + */ + +import React, { memo } from 'react'; +// import PropTypes from 'prop-types'; +import pluginId from '../../pluginId'; + +const HomePage = () => { + return ( +
+

{pluginId}'s HomePage

+

Happy coding

+
+ ); +}; + +export default memo(HomePage); diff --git a/plugins/mobile/admin/src/containers/Initializer/index.js b/plugins/mobile/admin/src/containers/Initializer/index.js new file mode 100644 index 0000000..06b5488 --- /dev/null +++ b/plugins/mobile/admin/src/containers/Initializer/index.js @@ -0,0 +1,26 @@ +/** + * + * Initializer + * + */ + +import { useEffect, useRef } from 'react'; +import PropTypes from 'prop-types'; +import pluginId from '../../pluginId'; + +const Initializer = ({ updatePlugin }) => { + const ref = useRef(); + ref.current = updatePlugin; + + useEffect(() => { + ref.current(pluginId, 'isReady', true); + }, []); + + return null; +}; + +Initializer.propTypes = { + updatePlugin: PropTypes.func.isRequired, +}; + +export default Initializer; diff --git a/plugins/mobile/admin/src/index.js b/plugins/mobile/admin/src/index.js new file mode 100644 index 0000000..6c5be5b --- /dev/null +++ b/plugins/mobile/admin/src/index.js @@ -0,0 +1,52 @@ +import pluginPkg from '../../package.json'; +import pluginId from './pluginId'; +import App from './containers/App'; +import Initializer from './containers/Initializer'; +import lifecycles from './lifecycles'; +import trads from './translations'; + +export default strapi => { + const pluginDescription = pluginPkg.strapi.description || pluginPkg.description; + const icon = pluginPkg.strapi.icon; + const name = pluginPkg.strapi.name; + + const plugin = { + blockerComponent: null, + blockerComponentProps: {}, + description: pluginDescription, + icon, + id: pluginId, + initializer: Initializer, + injectedComponents: [], + isReady: false, + isRequired: pluginPkg.strapi.required || false, + layout: null, + lifecycles, + mainComponent: App, + name, + preventComponentRendering: false, + trads, + menu: { + pluginsSectionLinks: [ + { + destination: `/plugins/${pluginId}`, + icon, + label: { + id: `${pluginId}.plugin.name`, + defaultMessage: name, + }, + name, + permissions: [ + // Uncomment to set the permissions of the plugin here + // { + // action: '', // the action name should be plugins::plugin-name.actionType + // subject: null, + // }, + ], + }, + ], + }, + }; + + return strapi.registerPlugin(plugin); +}; diff --git a/plugins/mobile/admin/src/lifecycles.js b/plugins/mobile/admin/src/lifecycles.js new file mode 100644 index 0000000..81b0172 --- /dev/null +++ b/plugins/mobile/admin/src/lifecycles.js @@ -0,0 +1,3 @@ +function lifecycles() {} + +export default lifecycles; diff --git a/plugins/mobile/admin/src/pluginId.js b/plugins/mobile/admin/src/pluginId.js new file mode 100644 index 0000000..1b059dd --- /dev/null +++ b/plugins/mobile/admin/src/pluginId.js @@ -0,0 +1,7 @@ +const pluginPkg = require('../../package.json'); +const pluginId = pluginPkg.name.replace( + /^strapi-plugin-/i, + '' +); + +module.exports = pluginId; diff --git a/plugins/mobile/admin/src/translations/ar.json b/plugins/mobile/admin/src/translations/ar.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/ar.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/cs.json b/plugins/mobile/admin/src/translations/cs.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/cs.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/de.json b/plugins/mobile/admin/src/translations/de.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/de.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/en.json b/plugins/mobile/admin/src/translations/en.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/en.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/es.json b/plugins/mobile/admin/src/translations/es.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/es.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/fr.json b/plugins/mobile/admin/src/translations/fr.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/fr.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/id.json b/plugins/mobile/admin/src/translations/id.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/id.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/index.js b/plugins/mobile/admin/src/translations/index.js new file mode 100644 index 0000000..d990d5a --- /dev/null +++ b/plugins/mobile/admin/src/translations/index.js @@ -0,0 +1,49 @@ +import ar from './ar.json'; +import cs from './cs.json'; +import de from './de.json'; +import en from './en.json'; +import es from './es.json'; +import fr from './fr.json'; +import id from './id.json'; +import it from './it.json'; +import ko from './ko.json'; +import ms from './ms.json'; +import nl from './nl.json'; +import pl from './pl.json'; +import ptBR from './pt-BR.json'; +import pt from './pt.json'; +import ru from './ru.json'; +import th from './th.json'; +import tr from './tr.json'; +import uk from './uk.json'; +import vi from './vi.json'; +import zhHans from './zh-Hans.json'; +import zh from './zh.json'; +import sk from './sk.json'; + +const trads = { + ar, + cs, + de, + en, + es, + fr, + id, + it, + ko, + ms, + nl, + pl, + 'pt-BR': ptBR, + pt, + ru, + th, + tr, + uk, + vi, + 'zh-Hans': zhHans, + zh, + sk, +}; + +export default trads; diff --git a/plugins/mobile/admin/src/translations/it.json b/plugins/mobile/admin/src/translations/it.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/it.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/ko.json b/plugins/mobile/admin/src/translations/ko.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/ko.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/ms.json b/plugins/mobile/admin/src/translations/ms.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/ms.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/nl.json b/plugins/mobile/admin/src/translations/nl.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/nl.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/pl.json b/plugins/mobile/admin/src/translations/pl.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/pl.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/pt-BR.json b/plugins/mobile/admin/src/translations/pt-BR.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/pt-BR.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/pt.json b/plugins/mobile/admin/src/translations/pt.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/pt.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/ru.json b/plugins/mobile/admin/src/translations/ru.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/ru.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/sk.json b/plugins/mobile/admin/src/translations/sk.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/sk.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/th.json b/plugins/mobile/admin/src/translations/th.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/th.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/tr.json b/plugins/mobile/admin/src/translations/tr.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/tr.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/uk.json b/plugins/mobile/admin/src/translations/uk.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/uk.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/vi.json b/plugins/mobile/admin/src/translations/vi.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/mobile/admin/src/translations/vi.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins/mobile/admin/src/translations/zh-Hans.json b/plugins/mobile/admin/src/translations/zh-Hans.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/zh-Hans.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/translations/zh.json b/plugins/mobile/admin/src/translations/zh.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/plugins/mobile/admin/src/translations/zh.json @@ -0,0 +1 @@ +{} diff --git a/plugins/mobile/admin/src/utils/getTrad.js b/plugins/mobile/admin/src/utils/getTrad.js new file mode 100644 index 0000000..a2b8632 --- /dev/null +++ b/plugins/mobile/admin/src/utils/getTrad.js @@ -0,0 +1,5 @@ +import pluginId from '../pluginId'; + +const getTrad = id => `${pluginId}.${id}`; + +export default getTrad; diff --git a/plugins/mobile/config/routes.json b/plugins/mobile/config/routes.json new file mode 100644 index 0000000..644c590 --- /dev/null +++ b/plugins/mobile/config/routes.json @@ -0,0 +1,20 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/", + "handler": "mobile.index", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/metadata", + "handler": "mobile.tables", + "config": { + "policies": [] + } + } + ] +} diff --git a/plugins/mobile/controllers/mobile.js b/plugins/mobile/controllers/mobile.js new file mode 100644 index 0000000..c89a028 --- /dev/null +++ b/plugins/mobile/controllers/mobile.js @@ -0,0 +1,59 @@ +"use strict"; +const _ = require("lodash"); +/** + * mobile.js controller + * + * @description: A set of functions called "actions" of the `mobile` plugin. + */ + +module.exports = { + /** + * Default action. + * + * @return {Object} + */ + tables: async (ctx) => { + const rawBuilder = strapi.connections.default.raw( + "select * from core_store" + ); + const response = await rawBuilder.then(); + const finalInformation = {} + response.map((e) => + { + if(_.startsWith(e.key,"model_def_application::")){ + const value=JSON.parse(e.value) + finalInformation[value.uid]={ + ...finalInformation[value.uid], + collectionName: value.collectionName, + kind: value.kind, + name: value.info.name, + description: value.info.description, + } + } + if(_.startsWith(e.key, + "plugin_content_manager_configuration_content_types::application::" + )){ + const value=JSON.parse(e.value) + finalInformation[value.uid]={ + ...finalInformation[value.uid], + defaultSortBy: value.settings.defaultSortBy, + mainField: value.settings.mainField, + defaultSortOrder: value.settings.defaultSortOrder, + layout: value.layouts.list + } + } + } + ); + ctx.send({ + message: finalInformation + }); + }, + index: async (ctx) => { + // Add your own logic here. + console.error("Heya!"); + // Send 200 `ok` + ctx.send({ + message: "mok", + }); + }, +}; diff --git a/plugins/mobile/package.json b/plugins/mobile/package.json new file mode 100644 index 0000000..5398420 --- /dev/null +++ b/plugins/mobile/package.json @@ -0,0 +1,28 @@ +{ + "name": "strapi-plugin-mobile", + "version": "0.0.0", + "description": "This is the description of the plugin.", + "strapi": { + "name": "mobile", + "icon": "plug", + "description": "Description of mobile plugin." + }, + "dependencies": {}, + "author": { + "name": "A Strapi developer", + "email": "", + "url": "" + }, + "maintainers": [ + { + "name": "A Strapi developer", + "email": "", + "url": "" + } + ], + "engines": { + "node": ">=10.16.0 <=14.x.x", + "npm": ">=6.0.0" + }, + "license": "MIT" +} diff --git a/plugins/mobile/services/mobile.js b/plugins/mobile/services/mobile.js new file mode 100644 index 0000000..c31c5bc --- /dev/null +++ b/plugins/mobile/services/mobile.js @@ -0,0 +1,11 @@ +'use strict'; + +/** + * mobile.js service + * + * @description: A set of functions similar to controller's actions to avoid code duplication. + */ + +module.exports = { + +}; diff --git a/yarn.lock b/yarn.lock index fad5511..d7fff5b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3032,6 +3032,30 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== +cheerio-select@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/cheerio-select/-/cheerio-select-1.4.0.tgz#3a16f21e37a2ef0f211d6d1aa4eff054bb22cdc9" + integrity sha512-sobR3Yqz27L553Qa7cK6rtJlMDbiKPdNywtR95Sj/YgfpLfy0u6CGJuaBKe5YE/vTc23SCRKxWSdlon/w6I/Ew== + dependencies: + css-select "^4.1.2" + css-what "^5.0.0" + domelementtype "^2.2.0" + domhandler "^4.2.0" + domutils "^2.6.0" + +cheerio@^1.0.0-rc.5: + version "1.0.0-rc.9" + resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.9.tgz#a3ae6b7ce7af80675302ff836f628e7cb786a67f" + integrity sha512-QF6XVdrLONO6DXRF5iaolY+odmhj2CLj+xzNod7INPWMi/x9X4SOylH0S/vaPpX+AUU6t04s34SQNh7DbkuCng== + dependencies: + cheerio-select "^1.4.0" + dom-serializer "^1.3.1" + domhandler "^4.2.0" + htmlparser2 "^6.1.0" + parse5 "^6.0.1" + parse5-htmlparser2-tree-adapter "^6.0.1" + tslib "^2.2.0" + chokidar@3.5.1, chokidar@^3.4.1, chokidar@^3.5.1: version "3.5.1" resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz" @@ -3677,6 +3701,17 @@ css-select@^2.0.2: domutils "^1.7.0" nth-check "^1.0.2" +css-select@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.1.2.tgz#8b52b6714ed3a80d8221ec971c543f3b12653286" + integrity sha512-nu5ye2Hg/4ISq4XqdLY2bEatAcLIdt3OYGFc9Tm9n7VSlFBcfRv0gBNksHRgSdUDQGtN3XrZ94ztW+NfzkFSUw== + dependencies: + boolbase "^1.0.0" + css-what "^5.0.0" + domhandler "^4.2.0" + domutils "^2.6.0" + nth-check "^2.0.0" + css-to-react-native@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.0.0.tgz" @@ -3691,6 +3726,11 @@ css-what@^3.2.1: resolved "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz" integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== +css-what@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-5.0.0.tgz#f0bf4f8bac07582722346ab243f6a35b512cfc47" + integrity sha512-qxyKHQvgKwzwDWC/rGbT821eJalfupxYW2qbSJSAtdSTimsr/MlaGONoNLllaUPZWf8QnbcKM/kPVYUQuEKAFA== + cssesc@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz" @@ -4057,7 +4097,7 @@ dom-serializer@0: domelementtype "^2.0.1" entities "^2.0.0" -dom-serializer@^1.0.1: +dom-serializer@^1.0.1, dom-serializer@^1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.1.tgz" integrity sha512-Pv2ZluG5ife96udGgEDovOOOA5UELkltfJpnIExPrAk1LTvecolUGn6lIaoLh86d83GiB86CjzciMd9BuRB71Q== @@ -4095,6 +4135,13 @@ domhandler@^4.0.0, domhandler@^4.1.0: dependencies: domelementtype "^2.2.0" +domhandler@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.2.0.tgz#f9768a5f034be60a89a27c2e4d0f74eba0d8b059" + integrity sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA== + dependencies: + domelementtype "^2.2.0" + domutils@^1.5.1, domutils@^1.7.0: version "1.7.0" resolved "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz" @@ -4112,6 +4159,15 @@ domutils@^2.5.2: domelementtype "^2.2.0" domhandler "^4.1.0" +domutils@^2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.6.0.tgz#2e15c04185d43fb16ae7057cb76433c6edb938b7" + integrity sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.2.0" + domhandler "^4.2.0" + dot-prop@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz" @@ -5460,7 +5516,7 @@ htmlparser2@^3.10.1: inherits "^2.0.1" readable-stream "^3.1.1" -htmlparser2@^6.0.0: +htmlparser2@^6.0.0, htmlparser2@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz" integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A== @@ -7640,6 +7696,13 @@ nth-check@^1.0.2: dependencies: boolbase "~1.0.0" +nth-check@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.0.tgz#1bb4f6dac70072fc313e8c9cd1417b5074c0a125" + integrity sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q== + dependencies: + boolbase "^1.0.0" + num2fraction@^1.2.2: version "1.2.2" resolved "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz" @@ -7974,6 +8037,18 @@ parse-srcset@^1.0.2: resolved "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz" integrity sha1-8r0iH2zJcKk42IVWq8WJyqqiveE= +parse5-htmlparser2-tree-adapter@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" + integrity sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA== + dependencies: + parse5 "^6.0.1" + +parse5@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== + parseurl@^1.3.2, parseurl@~1.3.2, parseurl@~1.3.3: version "1.3.3" resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" @@ -8081,6 +8156,11 @@ path-to-regexp@^1.1.1, path-to-regexp@^1.7.0: dependencies: isarray "0.0.1" +path-to-regexp@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-3.2.0.tgz#fa7877ecbc495c601907562222453c43cc204a5f" + integrity sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA== + pause@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz" @@ -10359,6 +10439,38 @@ strapi-plugin-content-type-builder@3.5.4: strapi-utils "3.5.4" yup "^0.27.0" +strapi-plugin-documentation@3.5.4: + version "3.5.4" + resolved "https://registry.yarnpkg.com/strapi-plugin-documentation/-/strapi-plugin-documentation-3.5.4.tgz#c751aa7e84f537e4b236a42b638bd8f9a6fda7f6" + integrity sha512-1H/0k/IvIF5ibQtZ4gftuB6tYK56Zm1K1PziN8sfRizugi4yl8iISrp6ddH52t5PtqU6KAFmrFh+BzeICq/pfg== + dependencies: + "@buffetjs/core" "3.3.4" + "@buffetjs/custom" "3.3.4" + "@buffetjs/hooks" "3.3.4" + "@buffetjs/icons" "3.3.4" + "@buffetjs/styles" "3.3.4" + "@buffetjs/utils" "3.3.4" + cheerio "^1.0.0-rc.5" + fs-extra "^9.1.0" + immutable "^3.8.2" + koa-static "^5.0.0" + lodash "4.17.20" + moment "^2.29.1" + path-to-regexp "^3.1.0" + react "^16.13.1" + react-copy-to-clipboard "^5.0.3" + react-dom "^16.9.0" + react-intl "4.5.0" + react-redux "^7.2.2" + react-router "^5.2.0" + react-router-dom "^5.0.0" + reactstrap "8.4.1" + redux "^4.0.1" + redux-immutable "^4.0.0" + reselect "^4.0.0" + strapi-helper-plugin "3.5.4" + swagger-ui-dist "3.45.1" + strapi-plugin-email@3.5.4: version "3.5.4" resolved "https://registry.npmjs.org/strapi-plugin-email/-/strapi-plugin-email-3.5.4.tgz" @@ -10804,6 +10916,11 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +swagger-ui-dist@3.45.1: + version "3.45.1" + resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-3.45.1.tgz#3c0b718cb5e944056500d92a45a04d2072073582" + integrity sha512-QWotWWYkgSdPtI6HW12q4Ua5zxIhhvnYvx9iZKtDbZuVvJSTnMIzaHrE6KJVe/8plWh7Wpd/qqeBfpOxF8g1/g== + switchback@^2.0.1: version "2.0.5" resolved "https://registry.npmjs.org/switchback/-/switchback-2.0.5.tgz" @@ -11078,7 +11195,7 @@ tslib@^1.10.0, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.1: +tslib@^2.0.1, tslib@^2.2.0: version "2.2.0" resolved "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz" integrity sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==