WiseNET.API - API Root Endpoint

From Wisenet Resource Centre
Jump to: navigation, search


The Wise.NET API root endpoint is the 'homepage' of the WiseNET API.

Ideally, from this API call, you should be able to reach all other API endpoints and all resources by simply following the hypertext links provided in each following response.

Supported Methods: GET

This page is a part of WiseNET API: Developer Resources.

List all Endpoints

GET /

Returns the list of all accessible endpoints.

Sample request:

 curl -X GET \
   -H 'Accept: application/vnd.mywisenet.api.v1+xml' \
   https://tst-api.wisenet.co/

Sample response:

  <ApiRoot xmlns="http://api.mywisenet.com.au/v1/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Links>
      <Link>
        <Href>/</Href>
        <Rel>self</Rel>
        <Title>API Root</Title>
      </Link>
      <Link>
        <Href>/courseoffers</Href>
        <Rel>course-offers</Rel>
        <Title>All CourseIn Wise.NET a course is usually a qualification or short course Offers</Title>
      </Link>
      <Link>
        <Href>/students</Href>
        <Rel>students</Rel>
        <Title>All Students</Title>
      </Link>
      <Link>
        <Href>/unitoffers</Href>
        <Rel>unit-offers</Rel>
        <Title>All Unit Offers</Title>
      </Link>
    </Links>
  </ApiRoot>

C# Code Sample

public static void GetCourseOffersSample()
{
    var request = HttpWebRequest.Create("https://tst-api.wisenet.co/") as HttpWebRequest;
    request.Accept = "application/vnd.mywisenet.api.v1+xml";
    request.Method = "GET";
    request.UserAgent = "C# Sample ClientIn Wise.NET a client is a student, trainee or apprentice";
 
    try
    {
        // Get response  
        using (var response = request.GetResponse() as HttpWebResponse)
        {
            // Get the response stream  
            using (var responseReader = new StreamReader(response.GetResponseStream()))
            {
                string responseBody = responseReader.ReadToEnd();
 
                // Console application output  
                Console.WriteLine(responseBody);
            }
        }
    }
    catch (WebException ex)
    {
        Console.WriteLine("Error: {0}", ex.Message);
    }
}
Personal tools
Namespaces
Variants
Actions
Navigation
Translate
Wisenet Getting Started
Learning Relationship Management
Learner App
Trainer Portal
Wise.NET Portal
CRM
eLearning
Surveys
Finance
Application Integration
Compliance: Australia
Compliance: New Zealand
Developer Resources
Toolbox