timorcms / timor.cms Goto Github PK
View Code? Open in Web Editor NEW一款超级轻量级的,基于.NET Core 的CMS系统
License: MIT License
一款超级轻量级的,基于.NET Core 的CMS系统
License: MIT License
URI: api/v1/articles
HttpMethod: GET
URI Parameters:
Request Body:
{
“pageIndex": int, //页码
"pageSize": int, //每页包含的文章个数
"title": "string", //主标题(模糊查询)
"author": "string", //作者 (模糊查询)
"isPublished": bool?, //是否发布
"startPublishDate": DateTime?, //起始发布时间(包含)
"endPublishDate": DateTime?, //终止发布时间(包含)
"categoryIds": [ "string(ObjectId)[]" ], //分类ID
}
Success
Http Code: 200 OK
Response Body:
{
"count": int, // 匹配的文章总条数
"data":
[
{
"id": ObjectId, //文章ID
"title": "string", //主标题
"subTitle": "string", //副标题
"shortDescription": "string", //摘要
"content": "string", //文章内容
"coverImage": "string(ObjectId)", //封面图片
"author": "string", //作者
"isPublished": bool, //是否发布
"publishDate": DateTime, //发布时间
"referenceUrl": "string", //文章引用来源
"visitCount": int, //访问次数
"categoryIds": [ "string(ObjectId)" ], //分类ID
"attachmentIds": [ "string(ObjectId)" ] //附件
}
]
}
URI: api/v1/articles/{id}
HttpMethod: DELETE
URI Parameters:
Request Body:
Success
Http Code: 204 NOCONTENT
Response Body:
URI: api/v1/categories/{id}
HttpMethod: DELETE
URI Parameters:
Request Body:
Success
Http Code: 204
Response Body:
URI: api/v1/articles/{id}
HttpMethod: PUT
URI Parameters:
Request Body:
{
"title": "string", //主标题
"subTitle": "string", //副标题
"shortDescription": "string", //摘要
"content": "string", //文章内容
"coverImage": "string(ObjectId)", //封面图片
"author": "string", //作者
"isPublished": bool, //是否发布
"referenceUrl": "string(Uri)", //文章引用来源
"visitCount": int, //访问次数
"categoryIds": [ "string(ObjectId)[]" ], //分类ID
"attachmentIds": [ "string(ObjectId)[]" ] //附件
}
Success
Http Code: 204 NOCONTENT
Response Body:
PUT api/v1/categories/{id}
{
Name: "string" //分类名称
Description: "string" //分类描述
Priority: 0 //优先级
ParentCategoryId: "string" //父分类ID
}
HTTP 204 NOCONTENT
创建一个新的API,用来创建文章。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.