Coder Social home page Coder Social logo

darvin / cocoa-rest-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmattozzi/cocoa-rest-client

0.0 2.0 0.0 2.07 MB

A native OS X cocoa application for testing HTTP endpoints

Home Page: http://code.google.com/p/cocoa-rest-client/

License: Other

C 4.09% Objective-C 95.91%

cocoa-rest-client's Introduction

About

CocoaRestClient is a Mac OS X app for testing HTTP/Restful endpoints.

I love curl, but sometimes I need my output XML or JSON pretty printed. I want to be able to save frequent PUT and POST bodies for later and copy and paste from responses easily. Think of this as curl with a light UI.

The goal of this project is to build a lightweight native Cocoa app for testing and debugging HTTP Restful services. This project was greatly inspired by the Java rest-client (http://code.google.com/p/rest-client/).

Features

  • Make GET, PUT, POST, DELETE, HEAD calls
  • Set request body to arbitrary content
  • Set request headers
  • Set HTTP basic & digest auth
  • Auto-format (pretty print) XML and JSON responses
  • Display response headers
  • Quick save requests in a handy drawer
  • Upload files and form data via multipart/form-data
  • Enter POST/PUT input as raw input or key/value pairs
  • Reports response latency
  • Command-R reloads last request
  • Lightweight: Low real memory usage
  • SSL Support (including untrusted certificates)
  • Optionally follows HTTP redirects
  • Import and export requests

Screenshots

Screenshot 1

Pretty print XML content. Quick save of request URLs, body, and headers in one convenient drawer.

Screenshot 2

Pretty print JSON content. Set and save HTTP headers.

Screenshot 3

Set HTTP Basic or Digest Auth. Displays HTTP response headers.

Screenshot 4

Set HTTP request body content to a raw text blob or a list of parameters.

Screenshot 5

Upload files using HTTP multipart requests. HTTP form encoding also supported.

Source and Contributions

  • Source code is now hosted on Github: http://github.com/mmattozzi/cocoa-rest-client
  • If you would like to contribute, please fork and create a pull request on Github
  • Downloads and issues will still be kept up to date on Google Code. I will probably keep source up to date with each release.
  • I don't plan on switching from Garbage Collection to ARC until I drop 10.6 support, as there seems to be some limitations with ARC on 10.6. I will most likely switch to ARC when OS X 10.8 is released.
  • I am not turning on AutoLayout constraints in my xib files until I drop 10.6 support.

Credits

Pretty formatting

On requests export, choose .md or .markdown file extension and requests will be exported as:

User Create

POST /api/v1/auth/user

Input

Content-Type: application/json
{
	"username":"userna3dme 1",
	"password":"some password"
}

GET /api/v1/auth/user/1

Input

Content-Type: application/json
GET /api/v1/auth/user/1

Input

Content-Type: application/json
{
	"username":"New username",
	"password":"new password"
}

cocoa-rest-client's People

Contributors

coryalder avatar darvin avatar mmattozzi avatar

Watchers

 avatar  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.