ianfromdover / nusmods-unity-rest-api

A working dummy project that tests REST APIs in Unity, pulling info from NUSMODS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity NUSMODS API Test

image

this dummy project aims to

  • use UnityWebRequest to GET information from a public REST API
  • that API being used is NUSMODS
  • the information is being displayed with a TextMeshPro GameObject

Usage

  • Install Unity Version 2020.3.24f1
  • Open the project and Click Play
  • Navigate to the pictured TMPro GameObject
  • Change the module code's text field. If it is a valid module code for AY2022/23, it will load the description in the text field

testing

To try other fields available on NUSMODS, refer to the API documentation from here https://api.nusmods.com/v2/#/

Credits

SimpleJSON for JSON parsing by inanoglu on GitHub

About

A working dummy project that tests REST APIs in Unity, pulling info from NUSMODS.


Languages

Language:C# 93.5%Language:HLSL 4.6%Language:ShaderLab 1.9%Language:C++ 0.1%Language:Objective-C++ 0.0%Language:CMake 0.0%