📖
ALFE
  • ALFE User Guide
  • User Guide
    • Overview
    • Quick Start
    • Installation
    • Tutorial
    • Bibliography
  • API Reference
    • Classes
      • Algebra
        • CSRMatrix
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. Classes

Algebra

Show User

Returns json data about a single user.

  • URL

    /users/:id

  • Method:

    GET

  • URL Params

    Required:

    id=[integer]

  • Data Params

    None

  • Success Response:

    • Code: 200

      Content: { id : 12, name : "Michael Bloom" }

  • Error Response:

    • Code: 404 NOT FOUND

      Content: { error : "User doesn't exist" }

    OR

    • Code: 401 UNAUTHORIZED

      Content: { error : "You are unauthorized to make this request." }

  • Sample Call:

      $.ajax({
        url: "/users/1",
        dataType: "json",
        type : "GET",
        success : function(r) {
          console.log(r);
        }
      });
PreviousClassesNextCSRMatrix

Last updated 3 years ago

Was this helpful?