Skip to content

Instantly share code, notes, and snippets.

@EDDYMENS
Last active March 11, 2021 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EDDYMENS/33dee98831f40c58486e2bed4bb6e9f8 to your computer and use it in GitHub Desktop.
Save EDDYMENS/33dee98831f40c58486e2bed4bb6e9f8 to your computer and use it in GitHub Desktop.

Get a list of templates

This endpoint retrieves a list of available templates stored in eTrusted.

The result set can be filtered by adding request parameters.

  • URL

    /users/:id

  • Method:

    GET

  • URL Params

    Required:

    id=[integer]

  • Data Params

    None

  • Header Parameters Required Authorization => [string] An authorisation header containing meta information, see OAuth2.

  • 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);
        }
      });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment