User Tools

Site Tools


emis_public_rest_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
emis_public_rest_api [2022/06/01 19:43] – [Currently Working REST API to be Deprecated] ghacheyemis_public_rest_api [2023/10/30 14:58] (current) – [Lookup Lists (Vocab)] ghachey
Line 1: Line 1:
 ====== Using the Pacific EMIS REST API ====== ====== Using the Pacific EMIS REST API ======
  
-There are a few things to note as convention for these docs.+This page documents the Pacific EMIS REST API (or RESTful API). There are a few things to note as convention for these docs.
  
   * ''<emis_root>'' is used to designate the base URL of the EMIS system (e.g. fedemis.doe.fm for FSM).   * ''<emis_root>'' is used to designate the base URL of the EMIS system (e.g. fedemis.doe.fm for FSM).
Line 80: Line 80:
  
 <note tip>for example perhaps using the code table gives you additional ways of iterating over the standards or criteria.</note> <note tip>for example perhaps using the code table gives you additional ways of iterating over the standards or criteria.</note>
 +
 +==== Vocab lookup ====
 +
 +A special type of lookup you get when loading the app or starting to use the REST API is the "vocab". The vocab, short for vocabularies, is a means to localize the Pacific EMIS terminologies. Different countries have different terminologies, for example:
 +
 +  * Districts in FSM are States, in RMI they are Atolls/Islands and in Solomon Islands they are provinces, or
 +  * Grades vs Grade Levels vs Class Levels
 +
 +While referred to differently in different countries, they are in essence the same things. So the Pacific EMIS uses one common term in the source code but in the UI it can easily be translated to the country's specific preferred terminology. For example, in the source code developers would work with "District" but in the web user interfaces the word District would translate to the country specific terminology (State in FSM, Atoll/Island in RMI, etc.). In the current web UI, this is achieve through the use of simple dynamic filters in the HTML. Any technique can be used. The important thing to know are the list of vocabs in use for a specific country which are available in the lookups' vocab object as shown below.
 +
 +{{ :rest-api:rest-api-vocab-1.png?nolink |}}
 +
  
 ===== Entity Lists ===== ===== Entity Lists =====
Line 623: Line 635:
  
 ==== Used in Schools Dashboard ==== ==== Used in Schools Dashboard ====
- 
-The following  are to be deprecated or not? They are still in use in Pacific EMIS web app and the backend code has no Deprecated attribute like other deprecated end point. 
  
 Deprecate Deprecate
Line 635: Line 645:
 Instead use Instead use
  
-<note important>Unsure yet what to replace this with</note>+<note important>Unsure yet what to replace this with. It is actually still in use in Pacific EMIS web app and the backend code has no Deprecated attribute like other deprecated end points.</note>
  
 Deprecate Deprecate
Line 753: Line 763:
 https://<emis_root>/api/warehouse/teachers/school?report https://<emis_root>/api/warehouse/teachers/school?report
 </code> </code>
 +
 +==== Used elsewhere ====
  
 Deprecate Deprecate
emis_public_rest_api.1654112581.txt.gz · Last modified: 2022/06/01 19:43 by ghachey