Giter Site home page Giter Site logo

3squared / peaknetwork Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 5.0 386 KB

PeakNetwork is a Swift networking microframework, built on top of Session and leveraging the power of Codable.

License: MIT License

Swift 100.00%
network parsing peak-framework swift urlsession

peaknetwork's People

Contributors

blork avatar zilmarinen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peaknetwork's Issues

Provide more flexibility when chaining operations

DecodableOperation is useful, but has a very narrow use case. Either allow it to be subclassed to provide more flexibility when building chains of operations, or make a version that implements ConsumesResult.

Add an operation to make batch uploads easier

I've encountered situations where, given an array of Encodables, I need to upload each one in an individual request to the web service I'm working with. It would be nice if PeakNetwork had an operation that took a Requestable and an array of Codables and performed a request for each one.

Provide clearer definition of the role of WebAPI

Version 6.0.0 replaces the Requestable paradigm with that of WebAPI. As I understand it, WebAPI is responsible for defining all information (base URL, endpoints, common headers, etc.) about the web API you are interfacing with in your application. This rigidity is pleasing and reminds me of Retrofit by Square.

However, I'm not sure WebAPI should be responsible for creating operations or holding information about the session they are executed on. Personally, I feel WebAPI should only be a static representation and definition of a web API.

Furthermore, unless the APIs for Resource are more strictly defined with Endpoint in mind, I find the availability of Endpoint to users of PeakNetwork a little redundant.

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.