mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
Remove useless content types
This commit is contained in:
parent
395ced57df
commit
2da64c084f
@ -1,52 +0,0 @@
|
||||
{
|
||||
"routes": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketships",
|
||||
"handler": "Rocketship.find",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketships/count",
|
||||
"handler": "Rocketship.count",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketships/:id",
|
||||
"handler": "Rocketship.findOne",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/rocketships",
|
||||
"handler": "Rocketship.create",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"path": "/rocketships/:id",
|
||||
"handler": "Rocketship.update",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/rocketships/:id",
|
||||
"handler": "Rocketship.delete",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers)
|
||||
* to customize this controller
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@ -1,55 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Lifecycle callbacks for the `Rocketship` 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) => {}
|
||||
};
|
||||
@ -1,38 +0,0 @@
|
||||
{
|
||||
"connection": "default",
|
||||
"collectionName": "rocketships",
|
||||
"info": {
|
||||
"name": "rocketship",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": [
|
||||
"created_at",
|
||||
"updated_at"
|
||||
],
|
||||
"comment": ""
|
||||
},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"pic": {
|
||||
"model": "file",
|
||||
"via": "related",
|
||||
"plugin": "upload"
|
||||
},
|
||||
"pictures": {
|
||||
"collection": "file",
|
||||
"via": "related",
|
||||
"plugin": "upload"
|
||||
},
|
||||
"rocketshipmaker": {
|
||||
"model": "rocketshipmaker",
|
||||
"via": "rocketships"
|
||||
},
|
||||
"date": {
|
||||
"type": "date"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services)
|
||||
* to customize this service
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@ -1,52 +0,0 @@
|
||||
{
|
||||
"routes": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketshipmakers",
|
||||
"handler": "Rocketshipmaker.find",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketshipmakers/count",
|
||||
"handler": "Rocketshipmaker.count",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rocketshipmakers/:id",
|
||||
"handler": "Rocketshipmaker.findOne",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/rocketshipmakers",
|
||||
"handler": "Rocketshipmaker.create",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"path": "/rocketshipmakers/:id",
|
||||
"handler": "Rocketshipmaker.update",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/rocketshipmakers/:id",
|
||||
"handler": "Rocketshipmaker.delete",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers)
|
||||
* to customize this controller
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@ -1,55 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Lifecycle callbacks for the `Rocketshipmaker` 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) => {}
|
||||
};
|
||||
@ -1,22 +0,0 @@
|
||||
{
|
||||
"connection": "default",
|
||||
"collectionName": "rocketshipmakers",
|
||||
"info": {
|
||||
"name": "rocketshipmaker",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": true,
|
||||
"comment": ""
|
||||
},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"rocketships": {
|
||||
"collection": "rocketship",
|
||||
"via": "rocketshipmaker"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services)
|
||||
* to customize this service
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@ -55,22 +55,6 @@ type createRecipePayload {
|
||||
recipe: Recipe
|
||||
}
|
||||
|
||||
input createRocketshipInput {
|
||||
data: RocketshipInput
|
||||
}
|
||||
|
||||
input createRocketshipmakerInput {
|
||||
data: RocketshipmakerInput
|
||||
}
|
||||
|
||||
type createRocketshipmakerPayload {
|
||||
rocketshipmaker: Rocketshipmaker
|
||||
}
|
||||
|
||||
type createRocketshipPayload {
|
||||
rocketship: Rocketship
|
||||
}
|
||||
|
||||
input createRoleInput {
|
||||
data: RoleInput
|
||||
}
|
||||
@ -116,22 +100,6 @@ type deleteRecipePayload {
|
||||
recipe: Recipe
|
||||
}
|
||||
|
||||
input deleteRocketshipInput {
|
||||
where: InputID
|
||||
}
|
||||
|
||||
input deleteRocketshipmakerInput {
|
||||
where: InputID
|
||||
}
|
||||
|
||||
type deleteRocketshipmakerPayload {
|
||||
rocketshipmaker: Rocketshipmaker
|
||||
}
|
||||
|
||||
type deleteRocketshipPayload {
|
||||
rocketship: Rocketship
|
||||
}
|
||||
|
||||
input deleteRoleInput {
|
||||
where: InputID
|
||||
}
|
||||
@ -208,19 +176,6 @@ input editRecipeInput {
|
||||
title: String
|
||||
}
|
||||
|
||||
input editRocketshipInput {
|
||||
name: String
|
||||
pic: ID
|
||||
pictures: [ID]
|
||||
rocketshipmaker: ID
|
||||
date: DateTime
|
||||
}
|
||||
|
||||
input editRocketshipmakerInput {
|
||||
name: String
|
||||
rocketships: [ID]
|
||||
}
|
||||
|
||||
input editRoleInput {
|
||||
name: String
|
||||
description: String
|
||||
@ -312,7 +267,7 @@ scalar JSON
|
||||
"""The `Long` scalar type represents 52-bit integers"""
|
||||
scalar Long
|
||||
|
||||
union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Article | createArticlePayload | updateArticlePayload | deleteArticlePayload | Recipe | createRecipePayload | updateRecipePayload | deleteRecipePayload | Rocketship | createRocketshipPayload | updateRocketshipPayload | deleteRocketshipPayload | Rocketshipmaker | createRocketshipmakerPayload | updateRocketshipmakerPayload | deleteRocketshipmakerPayload | Tag | createTagPayload | updateTagPayload | deleteTagPayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest
|
||||
union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Article | createArticlePayload | updateArticlePayload | deleteArticlePayload | Recipe | createRecipePayload | updateRecipePayload | deleteRecipePayload | Tag | createTagPayload | updateTagPayload | deleteTagPayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest
|
||||
|
||||
type Mutation {
|
||||
createArticle(input: createArticleInput): createArticlePayload
|
||||
@ -321,12 +276,6 @@ type Mutation {
|
||||
createRecipe(input: createRecipeInput): createRecipePayload
|
||||
updateRecipe(input: updateRecipeInput): updateRecipePayload
|
||||
deleteRecipe(input: deleteRecipeInput): deleteRecipePayload
|
||||
createRocketship(input: createRocketshipInput): createRocketshipPayload
|
||||
updateRocketship(input: updateRocketshipInput): updateRocketshipPayload
|
||||
deleteRocketship(input: deleteRocketshipInput): deleteRocketshipPayload
|
||||
createRocketshipmaker(input: createRocketshipmakerInput): createRocketshipmakerPayload
|
||||
updateRocketshipmaker(input: updateRocketshipmakerInput): updateRocketshipmakerPayload
|
||||
deleteRocketshipmaker(input: deleteRocketshipmakerInput): deleteRocketshipmakerPayload
|
||||
createTag(input: createTagInput): createTagPayload
|
||||
updateTag(input: updateTagInput): updateTagPayload
|
||||
deleteTag(input: deleteTagInput): deleteTagPayload
|
||||
@ -361,10 +310,6 @@ type Query {
|
||||
articles(sort: String, limit: Int, start: Int, where: JSON): [Article]
|
||||
recipe(id: ID!): Recipe
|
||||
recipes(sort: String, limit: Int, start: Int, where: JSON): [Recipe]
|
||||
rocketship(id: ID!): Rocketship
|
||||
rocketships(sort: String, limit: Int, start: Int, where: JSON): [Rocketship]
|
||||
rocketshipmaker(id: ID!): Rocketshipmaker
|
||||
rocketshipmakers(sort: String, limit: Int, start: Int, where: JSON): [Rocketshipmaker]
|
||||
tag(id: ID!): Tag
|
||||
tags(sort: String, limit: Int, start: Int, where: JSON): [Tag]
|
||||
files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
|
||||
@ -393,38 +338,6 @@ input RecipeInput {
|
||||
title: String
|
||||
}
|
||||
|
||||
type Rocketship {
|
||||
name: String
|
||||
pic: UploadFile
|
||||
rocketshipmaker: Rocketshipmaker
|
||||
date: DateTime
|
||||
pictures(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
|
||||
id: ID!
|
||||
created_at: DateTime!
|
||||
updated_at: DateTime!
|
||||
}
|
||||
|
||||
input RocketshipInput {
|
||||
name: String
|
||||
pic: ID
|
||||
pictures: [ID]
|
||||
rocketshipmaker: ID
|
||||
date: DateTime
|
||||
}
|
||||
|
||||
type Rocketshipmaker {
|
||||
name: String
|
||||
rocketships(sort: String, limit: Int, start: Int, where: JSON): [Rocketship]
|
||||
id: ID!
|
||||
created_at: DateTime!
|
||||
updated_at: DateTime!
|
||||
}
|
||||
|
||||
input RocketshipmakerInput {
|
||||
name: String
|
||||
rocketships: [ID]
|
||||
}
|
||||
|
||||
input RoleInput {
|
||||
name: String!
|
||||
description: String
|
||||
@ -466,24 +379,6 @@ type updateRecipePayload {
|
||||
recipe: Recipe
|
||||
}
|
||||
|
||||
input updateRocketshipInput {
|
||||
where: InputID
|
||||
data: editRocketshipInput
|
||||
}
|
||||
|
||||
input updateRocketshipmakerInput {
|
||||
where: InputID
|
||||
data: editRocketshipmakerInput
|
||||
}
|
||||
|
||||
type updateRocketshipmakerPayload {
|
||||
rocketshipmaker: Rocketshipmaker
|
||||
}
|
||||
|
||||
type updateRocketshipPayload {
|
||||
rocketship: Rocketship
|
||||
}
|
||||
|
||||
input updateRoleInput {
|
||||
where: InputID
|
||||
data: editRoleInput
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user