jeffgrunewald / maverick Goto Github PK
View Code? Open in Web Editor NEWWeb API framework with a need for speed
License: Apache License 2.0
Web API framework with a need for speed
License: Apache License 2.0
Per the OpenAPI specification, generating specs automatically for generated routes would allow for API clients to be auto-generated in many compatible languages.
Users should be able to provide a set of global response headers from the Api module. The module should implement a behaviour that returns response headers that are merged with any headers coming from the return value of a function.
Phoenix does this and it's a nice feature to check your routes across files; Maverick should, too.
By default, the body_params argument for incoming requests is deserialized to a map or is placed into a map with the top-level key of _json_body
. However, when the arg_type is request
(the user is explicitly selecting to receive the entire %Maverick.Request{}
struct as the argument to the internal function), it should be possible to override this behavior and allow the body_params to be any valid json.
In this scenario, the body_params is not coerced to a map and thus not merged into the params
map. It will be up to the user to handle the type received in this instance.
The default behavior should still be to coerce the body a map and merge it into the params
value.
Configurable deadlines on functions for a return value/response
Required params should also enforce they are non-nil and return an error to the client if not all values supplied when arg_type is set to required_params are sent on the incoming request.
Currently, user modules can declare a shared path "scope" on a per-module basis by passing the scope: "/some/path"
argument to the use Maverick
macro. This is fine and should still be supported but gets redundant with multiple modules that implement Maverick routes and should also support defining a "root scope" that all routes handled by a Maverick will serve.
Define this root scope functionality from the Api module with no default value. The best solution is likely another argument to the use Maverick.Api
macro like root_scope: "/some/route/prefix"
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.