-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal and planning for API framework #1
Comments
we should support OpenAPI 3.0 specification. |
How about https://github.com/go-chi/chi? |
Shall we track this in sprint, or kill it in freestyle? |
|
|
Non-golang, but highly recommended read about other great HTTP API frameworks:
|
@zoumo It's too early to say open api 3.0 should be supported, plus you can't find a reliable library at this moment. 2.0 is enough for us now.
@walktall looks like
@xiaoq17 framework is quite important now, i'd like to track it in sprint, for 1. predictable delivery time (hopefully); 2. help negotiate tasks with other product requirements. we can decide this next week.
@jimexist these are already mentioned in the issue
@jimexist can you elaborate the use case?
|
@ddysher regarding required and optional parameter, the one i missed most is from Dropwizard |
@jimexist Golang has tags for struct fields. But there is no tags for parameters of methods/functions. It's even no parameter name in reflection. We have two ways to achieve it:
|
@caicloud/review-framework I've updated our timeline, PTAL. |
Done 🚀 I'll create a doc to archive the issue. |
Introduction
api framework, or http web framework, is a long standing engineering backlog across engineering teams. The proposal aims to shed some light on how we want to move forward. This is by no means a thorough design, we hope to gather enough feedback to get going. Feel free to comment.
Background
No guideline is provided at this moment to start up a new apiserver from scratch, results in a divergent approaches on setting up new web projects. No conventions enforced at framework level also results in bugs due to breaking apis, validation errors, etc. On the other hand, engineering effort is wasted on solving the same range of problems which should ideally be solved in an API framework.
Goal
Proposal
Survey
Below is a short survey on existing projects:
Requirements
Following is all the required functionalities for our framework.
Routing, Request & Response
Instrumentation
jaeger
as tracing systemValidation
Usability
Performance
None-requirements
A list of functionalities commonly seen in other frameworks that are not in our scope
Design and Implementation
Project Timeline
Feature Design and Planning
Following is a list of planned features, their respective design and planning.
Meetings
Regular meetings will be held to discuss above topics.
Assignees
References
The text was updated successfully, but these errors were encountered: