Skip to content

ABuarque/RequestMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RequestMaker

This API provides a fluent interface to make HTTP requests. The request methods available are:

  • GET
  • POST
  • PUT
  • DELETE
  • PATCH

Quick use

//GET
val requestResponse = RequestMaker().toEndpoint("https://jsonplaceholder.typicode.com/users/1")
                                    .addToHeader("Content-Type", "application/json")
                                    .doGet()
                                    
//POST
val requestResponse = RequestMaker().toEndpoint("http://www.mocky.io/v2/596a5f03110000920701cd92")
                                    .addToHeader("Content-Type", "application/json")
                                    .withObjectRequest("{\"x\":\"Apple\", \"y\":\"Mango\"}")
                                    .doPost()

About

API that provides fluent interface to make http requests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages