mirror of
https://github.com/Such-Software/medusa-plugin-blog.git
synced 2026-10-27 06:08:53 +01:00
convert tabs to spaces for github readability
This commit is contained in:
@@ -67,11 +67,11 @@ create a new blog category object
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb
|
||||
}
|
||||
```
|
||||
|
||||
@@ -80,11 +80,11 @@ update an existing blog category object with given id
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb
|
||||
}
|
||||
```
|
||||
|
||||
@@ -96,18 +96,18 @@ create a new blog post object
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: boolean,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
tag_ids: string[],
|
||||
product_ids: string[],
|
||||
collection_ids: string[],
|
||||
metadata: jsonb
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: boolean,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
tag_ids: string[],
|
||||
product_ids: string[],
|
||||
collection_ids: string[],
|
||||
metadata: jsonb
|
||||
}
|
||||
```
|
||||
|
||||
@@ -116,18 +116,18 @@ update an existing blog post object with given id
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: boolean,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
tag_ids: string[],
|
||||
product_ids: string[],
|
||||
collection_ids: string[],
|
||||
metadata: jsonb
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: boolean,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
tag_ids: string[],
|
||||
product_ids: string[],
|
||||
collection_ids: string[],
|
||||
metadata: jsonb
|
||||
}
|
||||
```
|
||||
|
||||
@@ -139,7 +139,7 @@ create a new blog tag object
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
value: string!
|
||||
value: string!
|
||||
}
|
||||
```
|
||||
|
||||
@@ -148,7 +148,7 @@ update an existing blog tag object with given id
|
||||
Expects body with:
|
||||
```js
|
||||
{
|
||||
value: string!
|
||||
value: string!
|
||||
}
|
||||
```
|
||||
|
||||
@@ -161,22 +161,22 @@ delete an existing blog tag object with given id
|
||||
|
||||
```js
|
||||
{
|
||||
id: string!,
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: string!,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
category: Category,
|
||||
tags: BlogTag[],
|
||||
products: Product[],
|
||||
collections: Collection[],
|
||||
metadata: jsonb,
|
||||
created_at: DateTime!,
|
||||
updated_at: DateTime!
|
||||
id: string!,
|
||||
handle: string!,
|
||||
title: string!,
|
||||
author: string,
|
||||
published: string!,
|
||||
content: string,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
category_id: string,
|
||||
category: Category,
|
||||
tags: BlogTag[],
|
||||
products: Product[],
|
||||
collections: Collection[],
|
||||
metadata: jsonb,
|
||||
created_at: DateTime!,
|
||||
updated_at: DateTime!
|
||||
}
|
||||
```
|
||||
|
||||
@@ -184,8 +184,8 @@ delete an existing blog tag object with given id
|
||||
|
||||
```js
|
||||
{
|
||||
id: string!,
|
||||
value: string!
|
||||
id: string!,
|
||||
value: string!
|
||||
}
|
||||
```
|
||||
|
||||
@@ -193,13 +193,13 @@ delete an existing blog tag object with given id
|
||||
|
||||
```js
|
||||
{
|
||||
id: string!,
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb,
|
||||
posts: BlogPost[]
|
||||
id: string!,
|
||||
handle: string!,
|
||||
title: string!,
|
||||
description: string,
|
||||
keywords: string[],
|
||||
metadata: jsonb,
|
||||
posts: BlogPost[]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
+38
-38
@@ -1,40 +1,40 @@
|
||||
{
|
||||
"name": "medusa-plugin-blog",
|
||||
"version": "0.1.0",
|
||||
"description": "Basic blog backend for Medusa",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pevey/medusa-plugin-blog"
|
||||
},
|
||||
"homepage": "https://pevey.com/medusa-plugin-blog",
|
||||
"author": "Lacey Pevey",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"medusa-plugin",
|
||||
"blog",
|
||||
"ecommerce",
|
||||
"headless",
|
||||
"medusa"
|
||||
],
|
||||
"devDependencies": {
|
||||
"body-parser": "^1.20.2",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^5.2.1",
|
||||
"express": "^4.18.2",
|
||||
"typeorm": "^0.3.16",
|
||||
"typescript": "^4.4.4"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "cross-env NODE_ENV=production yarn run build",
|
||||
"test": "jest --passWithNoTests src",
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/medusa": "^1.12.0",
|
||||
"@medusajs/utils": "1.9.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "^3.21.4"
|
||||
}
|
||||
"name": "medusa-plugin-blog",
|
||||
"version": "0.1.0",
|
||||
"description": "Basic blog backend for Medusa",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pevey/medusa-plugin-blog"
|
||||
},
|
||||
"homepage": "https://pevey.com/medusa-plugin-blog",
|
||||
"author": "Lacey Pevey",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"medusa-plugin",
|
||||
"blog",
|
||||
"ecommerce",
|
||||
"headless",
|
||||
"medusa"
|
||||
],
|
||||
"devDependencies": {
|
||||
"body-parser": "^1.20.2",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^5.2.1",
|
||||
"express": "^4.18.2",
|
||||
"typeorm": "^0.3.16",
|
||||
"typescript": "^4.4.4"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "cross-env NODE_ENV=production yarn run build",
|
||||
"test": "jest --passWithNoTests src",
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/medusa": "^1.12.0",
|
||||
"@medusajs/utils": "1.9.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "^3.21.4"
|
||||
}
|
||||
}
|
||||
|
||||
+28
-28
@@ -1,30 +1,30 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["es2020"],
|
||||
"target": "es2020",
|
||||
"outDir": "./",
|
||||
"rootDir": "./src",
|
||||
"esModuleInterop": true,
|
||||
"declaration": false,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": true,
|
||||
"noImplicitReturns": false,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": false,
|
||||
"noImplicitThis": false,
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"downlevelIteration": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": [
|
||||
"dist",
|
||||
"src/**/__tests__",
|
||||
"src/**/__mocks__",
|
||||
"src/**/__fixtures__",
|
||||
"node_modules"
|
||||
]
|
||||
"compilerOptions": {
|
||||
"lib": ["es2020"],
|
||||
"target": "es2020",
|
||||
"outDir": "./",
|
||||
"rootDir": "./src",
|
||||
"esModuleInterop": true,
|
||||
"declaration": false,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": true,
|
||||
"noImplicitReturns": false,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": false,
|
||||
"noImplicitThis": false,
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"downlevelIteration": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": [
|
||||
"dist",
|
||||
"src/**/__tests__",
|
||||
"src/**/__mocks__",
|
||||
"src/**/__fixtures__",
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user