Skip to content

Instantly share code, notes, and snippets.

@DupK
Forked from Cylix/intra_epitech_api_urls.md
Created December 26, 2016 13:19
Show Gist options
  • Save DupK/7c093c31ed7e55a1584f7787a3499f81 to your computer and use it in GitHub Desktop.
Save DupK/7c093c31ed7e55a1584f7787a3499f81 to your computer and use it in GitHub Desktop.
Intranet Epitech API URLs

Intra Epitech: API URLs

L'intra d'Epitech (intra.epitech.eu) possède une API assez vaste mais malheureusement non documentée. J'ai regroupé ici un certains nombres d'urls concernant cette API.

Pour chacun des liens ci-dessous, ne pas oublier le paramètre &format=json
Attention à bien requêter le https et non pas le http.
La ressource n'est pas encore complète

Connexion à l'intra

  • POST /
  • &login=login_x (obligatoire)
  • &password=password_unix (obligatoire)
  • &remember_me=on (optionnel)

Page d'accueil

  • Infos générales
  • GET /

  • Notification RDV à venir
  • GET /user/notification/coming

  • Notification Messages
  • GET /user/notification/message

  • Notification Alertes

  • GET /user/notification/alert

Etudiants

  • Informations générales
  • GET /user/LOGIN_X

  • Modules et notes
  • GET /user/LOGIN_X/notes

  • Netsoul
  • GET /user/LOGIN_X/netsoul

Forum

Le forum fonctionne avec un système de nodes.

On est d'abord situé à /. Si on consulte la catégorie Bocal, on se retrouve dans /bocal.

  • Listing des nodes filles
  • GET /forum/node/list

  • &nodes[]=path_node (obligatoire). Le path correspond au path de la catégorie dans laquelle on se situe (exemple: /bocal ou /Administration)

  • Informations sur la node courante
  • GET /forum/index/get

  • Infos générales
  • GET /forum/index/dashboard

  • Listing des threads d'une node
  • GET /forum/thread/list

  • &node=path_node (obligatoire)

  • Listing des posts d'un thead
  • GET /forum/post/list

  • &thread=path_du_thread (si mon thread s'appelle Salut et qu'il se trouve dans la catégorie Bocal, path_du_thread sera /bocal/salut. Le nom du thread s'obtient via le listing des threads).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment