Skip to content

doctorsonrails/o_portfolio_api_old

Repository files navigation

API for OPortfolio

A very simple RESTful API for an open e-portfolio for doctors.

See files in docs for details of the endpoints.

Usage

jQuery

$.ajax({
    url: 'https://o-portfolio-api.herokuapp.com/entries/',
    type: "GET",
    beforeSend: function(xhr) {
        xhr.setRequestHeader("Authorization",
            "basic YWRtaW5AbmhzLmNvbTp0ZXN0"); // Basic HTTP Auth
        },
    success: function(data) {
        console.log("success! " + data);
    },
    error: function(xhr){
        console.log("error :-( " + xhr);
    }
});

cUrl

curl -v -u [email protected]:password https://o-portfolio-api.herokuapp.com/entries/

Releases

No releases published

Packages

No packages published