GithubHelp home page GithubHelp logo

minirest's Introduction

miniREST

This library was made to create a starting point for anyone wanting to work with webAPIs without having to learn bloated libraries or having to piece togheter your own requests.

functionality

at this time, miniREST only features basic url requests with as many stringed arguments as you want and basic support for passing one-dimensional lists. Responses are returned as plain text. If you want to process jsons (which are most commonly used to respond to webAPI requests) I suggest you try out the json.org library. Its really easy to use and by combining these two libraries you can get up and running and start pulling basic data or even writing implementations of API clients pretty quickly.

basic usage

miniREST has one main type, that you can use to issue API requests called RESTRequester. Just instanciate it with your api url and an instance of an httpReader (basic class included in the package). To issue a request, simply use the issueRequest method. You can pass your arguments as key value pairs in a Hashlist and your desired endpoint as a string (like this: path/to/endpoint/endpoint dont include the URL!). If you want to pass one dimensional Lists, use the stringToURLArray method on your list of Strings and pass the result as the value of an arguments key.

minirest's People

Contributors

lukacholombardi avatar

Watchers

 avatar

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.