• Members 13 posts
    Nov. 21, 2018, 2:46 p.m.


    @rafalp Misago Forum is awesome, good work! I've not anything bad to tell you.
    I have only a question about APIs and what I can do with them... I read docs on misago gitbook, but not find how what I need to my project.

    Can you give me a little description, very general about project APIs? I need API about basic administration of forums.


    ```<!DOCTYPE html> <html> <head> </head> <body class="pt-5" style="min-height:90vh"> <label for="evento1" name="evento1">Evento 1</label> <input checked type="checkbox" value="evento1" id="evento1"></input> <label for="evento2" name="evento2">Evento 2</label> <input type="checkbox" value="evento2" id="evento2"></input> <label for="evento3" name="evento3">Evento 3</label> <input type="checkbox" value="evento3" id="evento3"></input> </body> <script src="ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> var eventiSelezionati = ["evento1"]; var eventiEdit = []; $("input").on("keyup click", function() { var checked = $(this).is(":checked"); var thisEvento = $(this).val(); if(checked){ console.log($(this).val()) if(eventiSelezionati.indexOf(thisEvento)<=-1){ eventiSelezionati.push(thisEvento); } }else{ if(eventiSelezionati.indexOf(thisEvento)>-1){ eventiSelezionati.splice(eventiSelezionati.indexOf(thisEvento), 1); } } console.log("eventiSelezionati") console.log(eventiSelezionati) window.eventiSelezionati = eventiSelezionati; }); console.log(window.eventiSelezionati) </script> </html>


  • Nov. 21, 2018, 3:12 p.m.

    There is no API for administrating site, only JSON API for interface to load users/threads/categories and create/moderate those, available under the /api/ path, but it's not documented and its non-browserable.

    In 2019 Misago will be migrating to GraphQL, because its much better than plain JSON API.