quanttide / quanttide-specification-of-network-applications Goto Github PK
View Code? Open in Web Editor NEW量潮网络应用标准
量潮网络应用标准
description,“描述”,类似于pyproject.toml的description字段。
readme,“简介”,类似于pyproject.toml的readme字段。
对某个资源执行bulk_update操作,比如更变两个资源的排序。
API格式如PATCH /<resources>
,详见DRF实现。
以及一些DRF内部实现:
这种方案的好处是比较通用,缺点是没有社区规范和标准支持。
另外一种保守方案是设计一个无状态service,比如reorder
方法。
社区没有专门的文档或者最佳实践对排序API的定义,因此我们需要根据我们自己的需求和偏好定义。
PS:Django的order字段解决方案:https://github.com/django-ordered-model/django-ordered-model。
假设资源有所有者,则定义
category是树,tag就是简单打标签分类。这两个加起来也就是简单分类。
对于组织、项目等有明确顺序的结构,比较适合使用有向无环图DAG。
对于一般的关联关系,可以使用一般的图结构。
技术实现可以考虑:
生命周期是事物从诞生、成长、成熟到衰退或结束的整个过程。
状态字段被定义为标识生命周期的某个阶段。
状态字段通常是动词的现在进行时或者过去时。
微软云的最佳实践建议:
详情见:https://learn.microsoft.com/zh-cn/azure/architecture/best-practices/api-design#media-type-versioning
我的进一步想法:
qtclass-course
。工程实现:
drf-versioned-schemas
库实现的实际上就是这个功能,感觉可以重命名为drf-versioned-mime
并增加微软建议的实践。参考资料:
drf-bulk提供了一套直接在REST的方法基础上增加的方案。
project-relations/<id>
分情况讨论:
表示自上而下的金字塔结构的层级,数字越小越高等级。
比如部门层级。
在英语里,Hierarchy是一个不可数名词,指的是有层次的结构,常用Level of Hierarchy,详见见:https://www.tutor2u.net/business/reference/hierarchy
Rank 等级
表示类似于军衔的正式人员等级,数字越大越高等级。
比如员工职级。
职级在英文中最长使用的单词是Rank。由于职级非常类似于军衔,而军衔是Rank,详见:https://dictionary.cambridge.org/dictionary/english/rank
一般的等级,数字越大越高等级。
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.