diff --git a/.ebextensions/06-https-instance-securitygroup.config b/.ebextensions/06-https-instance-securitygroup.config new file mode 100644 index 0000000..e32bd94 --- /dev/null +++ b/.ebextensions/06-https-instance-securitygroup.config @@ -0,0 +1,9 @@ +Resources: + sslSecurityGroupIngress: + Type: AWS::EC2::SecurityGroupIngress + Properties: + GroupId: { "Fn::GetAtt": ["AWSEBSecurityGroup", "GroupId"] } + IpProtocol: tcp + ToPort: 443 + FromPort: 443 + CidrIp: 0.0.0.0/0 diff --git a/api/test/config/routes.json b/api/test/config/routes.json new file mode 100644 index 0000000..ac3ed79 --- /dev/null +++ b/api/test/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/tests", + "handler": "test.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/tests/count", + "handler": "test.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/tests/:id", + "handler": "test.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/tests", + "handler": "test.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/tests/:id", + "handler": "test.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/tests/:id", + "handler": "test.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/test/controllers/test.js b/api/test/controllers/test.js new file mode 100644 index 0000000..f94f227 --- /dev/null +++ b/api/test/controllers/test.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/test/models/test.js b/api/test/models/test.js new file mode 100644 index 0000000..2946741 --- /dev/null +++ b/api/test/models/test.js @@ -0,0 +1,55 @@ +'use strict'; + +/** + * Lifecycle callbacks for the `test` model. + */ + +module.exports = { + // Before saving a value. + // Fired before an `insert` or `update` query. + // beforeSave: async (model, attrs, options) => {}, + + // After saving a value. + // Fired after an `insert` or `update` query. + // afterSave: async (model, response, options) => {}, + + // Before fetching a value. + // Fired before a `fetch` operation. + // beforeFetch: async (model, columns, options) => {}, + + // After fetching a value. + // Fired after a `fetch` operation. + // afterFetch: async (model, response, options) => {}, + + // Before fetching all values. + // Fired before a `fetchAll` operation. + // beforeFetchAll: async (model, columns, options) => {}, + + // After fetching all values. + // Fired after a `fetchAll` operation. + // afterFetchAll: async (model, response, options) => {}, + + // Before creating a value. + // Fired before an `insert` query. + // beforeCreate: async (model, attrs, options) => {}, + + // After creating a value. + // Fired after an `insert` query. + // afterCreate: async (model, attrs, options) => {}, + + // Before updating a value. + // Fired before an `update` query. + // beforeUpdate: async (model, attrs, options) => {}, + + // After updating a value. + // Fired after an `update` query. + // afterUpdate: async (model, attrs, options) => {}, + + // Before destroying a value. + // Fired before a `delete` query. + // beforeDestroy: async (model, attrs, options) => {}, + + // After destroying a value. + // Fired after a `delete` query. + // afterDestroy: async (model, attrs, options) => {} +}; diff --git a/api/test/models/test.settings.json b/api/test/models/test.settings.json new file mode 100644 index 0000000..f3a687b --- /dev/null +++ b/api/test/models/test.settings.json @@ -0,0 +1,16 @@ +{ + "kind": "collectionType", + "collectionName": "tests", + "info": { + "name": "test" + }, + "options": { + "increments": true, + "timestamps": true + }, + "attributes": { + "title": { + "type": "string" + } + } +} diff --git a/api/test/services/test.js b/api/test/services/test.js new file mode 100644 index 0000000..d0dcc88 --- /dev/null +++ b/api/test/services/test.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/services.html#core-services) + * to customize this service + */ + +module.exports = {};