Opetussuunnitelmat

API change history

Opetussuunnitelmat LAMK:ssa

Hae opetussuunnitelma

Hae yksittäinen opetussuunnitelma annetulla ID:llä

Try it

Request

Request URL

Request parameters

  • Opetussuunnitelman yksilöivä tunniste

  • (optional)

    Sisällön kieli

Request headers

  • (optional)

    Sisällön kieli

  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Responses

200 OK

Representations

{
  "status": "success",
  "programmes": [{
    "id": "10926",
    "localizedName": {},
    "localizedDescription": {},
    "localizedContent": {},
    "localizedDevelopment": {},
    "localizedFurtherInformation": {},
    "code": "TEYDIG18",
    "currentStatus": "PUBLISHED",
    "duration": 1.0,
    "language": "fi",
    "plans": [{
      "id": "682",
      "startSemester": 0,
      "startYear": 2018,
      "localizedName": {},
      "name": "TEYDIG18"
    }],
    "specialisationOptions": [],
    "structureViews": [{
      "id": "29971",
      "relations": [{
        "id": "29971",
        "level": "0",
        "treeId": "29971",
        "learningUnit": {
          "id": "10926",
          "code": "TEYDIG18",
          "credits": 60.0,
          "type": "PROGRAMME",
          "status": "PUBLISHED",
          "localizedName": {},
          "name": "Insinööri (ylempi AMK), digitaaliset ratkaisut"
        }
      }, {
        "id": "30037",
        "level": "1",
        "treeId": "29971",
        "learningUnit": {
          "id": "10963",
          "code": "TEYDIG18-1000",
          "credits": 50.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "YDINOSAAMINEN"
        }
      }, {
        "id": "30866",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "11136",
          "code": "TEYDIG18-1008",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "ALL_OF",
          "localizedName": {},
          "name": "Yhteinen ydinosaaminen"
        }
      }, {
        "id": "30991",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11169",
          "code": "LA00BO55",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Big Data"
        }
      }, {
        "id": "30994",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11172",
          "code": "LA00BO58",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Pelillisyys"
        }
      }, {
        "id": "30869",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "11137",
          "code": "TEYDIG18-1009",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "Vaihtoehtoinen ydinosaaminen"
        }
      }, {
        "id": "30867",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11119",
          "code": "LA00BO21",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Tulevaisuusajattelu digitalisaatiossa"
        }
      }, {
        "id": "30868",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11122",
          "code": "LA00BO22",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Kehittäminen muutoksen muotona digitalisaatiossa"
        }
      }, {
        "id": "31017",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11165",
          "code": "LA00BO47",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Systeemiset tuote- ja palveluratkaisut"
        }
      }, {
        "id": "31049",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11175",
          "code": "LA00BO61",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Digitaalisten ratkaisujen innovointi"
        }
      }, {
        "id": "30045",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "10967",
          "code": "TEYDIG18-1004",
          "credits": 30.0,
          "type": "STUDY_MODULE",
          "luOptionality": "ALL_OF",
          "localizedName": {},
          "name": "Opinnäytetyö"
        }
      }, {
        "id": "30046",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "8594",
          "code": "LA00BF06",
          "credits": 30.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Opinnäytetyö"
        }
      }, {
        "id": "30047",
        "level": "1",
        "treeId": "29971",
        "learningUnit": {
          "id": "10968",
          "code": "TEYDIG18-1005",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "TÄYDENTÄVÄ OSAAMINEN"
        }
      }]
    }, {
      "id": "a682",
      "relations": [{
        "id": "29971",
        "level": "0",
        "treeId": "29971",
        "learningUnit": {
          "id": "10926",
          "code": "TEYDIG18",
          "credits": 60.0,
          "type": "PROGRAMME",
          "status": "PUBLISHED",
          "localizedName": {},
          "name": "Insinööri (ylempi AMK), digitaaliset ratkaisut"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30037",
        "level": "1",
        "treeId": "29971",
        "learningUnit": {
          "id": "10963",
          "code": "TEYDIG18-1000",
          "credits": 50.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "YDINOSAAMINEN"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30866",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "11136",
          "code": "TEYDIG18-1008",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "ALL_OF",
          "localizedName": {},
          "name": "Yhteinen ydinosaaminen"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30991",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11169",
          "code": "LA00BO55",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Big Data"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 1.66667,
          "periodNumber": 3
        }, {
          "credits": 1.66667,
          "periodNumber": 4
        }, {
          "credits": 1.66667,
          "periodNumber": 5
        }]
      }, {
        "id": "30994",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11172",
          "code": "LA00BO58",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Pelillisyys"
        },
        "periods": [{
          "credits": 1.66667,
          "periodNumber": 0
        }, {
          "credits": 1.66667,
          "periodNumber": 1
        }, {
          "credits": 1.66667,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30869",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "11137",
          "code": "TEYDIG18-1009",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "Vaihtoehtoinen ydinosaaminen"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30867",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11119",
          "code": "LA00BO21",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Tulevaisuusajattelu digitalisaatiossa"
        },
        "periods": [{
          "credits": 1.66667,
          "periodNumber": 0
        }, {
          "credits": 1.66667,
          "periodNumber": 1
        }, {
          "credits": 1.66667,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30868",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11122",
          "code": "LA00BO22",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Kehittäminen muutoksen muotona digitalisaatiossa"
        },
        "periods": [{
          "credits": 1.66667,
          "periodNumber": 0
        }, {
          "credits": 1.66667,
          "periodNumber": 1
        }, {
          "credits": 1.66667,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "31017",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11165",
          "code": "LA00BO47",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Systeemiset tuote- ja palveluratkaisut"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "31049",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "11175",
          "code": "LA00BO61",
          "credits": 5.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Digitaalisten ratkaisujen innovointi"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30045",
        "level": "2",
        "treeId": "29971",
        "learningUnit": {
          "id": "10967",
          "code": "TEYDIG18-1004",
          "credits": 30.0,
          "type": "STUDY_MODULE",
          "luOptionality": "ALL_OF",
          "localizedName": {},
          "name": "Opinnäytetyö"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30046",
        "level": "3",
        "treeId": "29971",
        "learningUnit": {
          "id": "8594",
          "code": "LA00BF06",
          "credits": 30.0,
          "type": "COURSE_UNIT",
          "localizedName": {},
          "name": "Opinnäytetyö"
        },
        "periods": [{
          "credits": 5.0,
          "periodNumber": 0
        }, {
          "credits": 5.0,
          "periodNumber": 1
        }, {
          "credits": 5.0,
          "periodNumber": 2
        }, {
          "credits": 5.0,
          "periodNumber": 3
        }, {
          "credits": 5.0,
          "periodNumber": 4
        }, {
          "credits": 5.0,
          "periodNumber": 5
        }]
      }, {
        "id": "30047",
        "level": "1",
        "treeId": "29971",
        "learningUnit": {
          "id": "10968",
          "code": "TEYDIG18-1005",
          "credits": 10.0,
          "type": "STUDY_MODULE",
          "luOptionality": "SOME_OF",
          "localizedName": {},
          "name": "TÄYDENTÄVÄ OSAAMINEN"
        },
        "periods": [{
          "credits": 0.0,
          "periodNumber": 0
        }, {
          "credits": 0.0,
          "periodNumber": 1
        }, {
          "credits": 0.0,
          "periodNumber": 2
        }, {
          "credits": 0.0,
          "periodNumber": 3
        }, {
          "credits": 0.0,
          "periodNumber": 4
        }, {
          "credits": 0.0,
          "periodNumber": 5
        }]
      }]
    }],
    "name": "Insinööri (ylempi AMK), digitaaliset ratkaisut",
    "description": "Digitaaliset ratkaisut -koulutuksessa tavoitteena on syventää osaamista muuttuvissa toimintaympäristöissä ja työn uusissa muodoissa. Digitalisaatio ja sen hyödyntäminen tarkoittavat eri aloilla tulevaisuuden ilmiöiden tunnistamista, työn kehittämistä ja monipuolistamista. Teknologian läsnäolo ja kyvykkyys reagoida uuteen antavat osaamista vastata työelämän jatkuviin muutoksiin ja haasteisiin. Digitalisaatio muuttaa tuntemiamme aloja ja synnyttää uusia toimenkuvia ja työntarpeita tulevaisuudessa.\r\n\r\nTekniikan alalla koulutus keskittyy informaatioteknologian ja digitaalisuuden uusimpiin trendeihin. Tavoitteena on käyttää hyväksi ICT:n luomia mahdollisuuksia yritystoiminnan, teollisuuden ja julkisen sektorin edistämiseen. Ohjelma lisää laaja-alaista ymmärrystä sekä parantaa yhteistyötä eri ICT-toimijoiden kesken niin ohjelmistopohjaisten palveluiden, kuin käytettävyyden ja infrastruktuurin osalta unohtamatta kestävän kehityksen periaatteita. Tutkinnon suoritettuaan opiskelija kykenee toimimaan vaativissa asiantuntija-, kehittämis-, suunnittelu- ja johtamistehtävissä tai yrittäjänä.",
    "content": "",
    "development": "",
    "furtherInformation": ""
  }]
}

Code samples

@ECHO OFF

curl -v -X GET "https://api.lamk.fi/curriculum/{id}?l={}"
-H "Accept-Language: "
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.AcceptLanguage.Add(StringWithQualityHeaderValue.Parse(""));
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            // Request parameters
            queryString["l"] = "{}";
            var uri = "https://api.lamk.fi/curriculum/{id}?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.lamk.fi/curriculum/{id}");

            builder.setParameter("l", "{}");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Accept-Language", "");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
            "l": "{}",
        };
      
        $.ajax({
            url: "https://api.lamk.fi/curriculum/{id}?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Accept-Language","");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.lamk.fi/curriculum/{id}";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"l={}",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"" forHTTPHeaderField:@"Accept-Language"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.lamk.fi/curriculum/{id}');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Accept-Language' => '',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'l' => '{}',
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Accept-Language': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
    # Request parameters
    'l': '{}',
})

try:
    conn = httplib.HTTPSConnection('api.lamk.fi')
    conn.request("GET", "/curriculum/{id}?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Accept-Language': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'l': '{}',
})

try:
    conn = http.client.HTTPSConnection('api.lamk.fi')
    conn.request("GET", "/curriculum/{id}?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.lamk.fi/curriculum/{id}')

query = URI.encode_www_form({
    # Request parameters
    'l' => '{}'
})
if query.length > 0
  if uri.query && uri.query.length > 0
    uri.query += '&' + query
  else
    uri.query = query
  end
end

request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Accept-Language'] = ''
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body