HTWK-App / Server-Application

Server-Application, designed for use with the HTWK Smartphone-App
GNU General Public License v3.0
1 stars 1 forks source link

API - Test: /app/timetable/cal #31

Closed Zipunrar closed 10 years ago

Zipunrar commented 10 years ago

The provided (correct) List should be changed slightly.

Current (Extract):

{
...
  "35-64": "Alle Wochen",
  "_61": "Aktuelle Woche",
  "all": "35-64",
  "semester": "ws"
}

Change to (Entry "35-64": "Alle Wochen" not needed because of "all")

{
...
  "current": 61
  "all": "35-64",
  "semester": "ws"
}
hknochi commented 10 years ago

i don't understand the problem?

Zipunrar commented 10 years ago

That Entry "all" and "Alle Wochen" are the same, you see right?

The Array Index "current" ist the same like "semester". I want to access the semester information and call "jsonarr.semester". I want to know the current week number: I call "jsonarr.current". If I dont know the number I can't access the Array Entry!?

Also the behavior of all Indices should be the same!