Coder Social home page Coder Social logo

nomasystems / erf Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 2.0 793 KB

:pencil: A design-first Erlang REST Framework.

Home Page: https://nomasystems.github.io/erf/

License: Apache License 2.0

Erlang 99.24% Python 0.11% HTML 0.65%
erlang framework openapi rest

erf's People

Contributors

javiergarea avatar loissotolopez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

erf's Issues

refactor: update request data structure

Currently, requests are represented using different data structures in both middlewares and routers. This current structure is too rigid, making it challenging to implement enhancements without introducing breaking changes. Therefore, we should standardize these representations and adopt a more flexible approach.

e.g.,

%%% BEFORE

% Middlewares
-type request() :: {
    Path :: [binary()],
    Method :: method(),
    QueryParameters :: [query_parameter()],
    Headers :: [header()],
    Body :: body()
}.

% Routers
operation_id(PathParameters, QueryParameters, Headers, Body) ->
%%% AFTER
 
% Both middlewares and routers
-type request() :: {
    path := [binary()],
    method := method(),
    query_parameters := [query_parameter()],
    headers := [header()],
    body := body()
}.

add a fine example for a newbee

i wan't to learn erl, for build a restful api ,but im a new one, coud you add a reach example for erf?
thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.