Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. Okay so I need two sets of endpoints.

Okay so I need two sets of endpoints.

Pianificato Fissato Bloccato Spostato Senza categoria
2 Post 1 Autori 0 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • mccundefined Questo utente è esterno a questo forum
    mccundefined Questo utente è esterno a questo forum
    mcc
    scritto su ultima modifica di
    #1

    Okay so I need two sets of endpoints.
    One set is RPCs-- eg javascript Fetch is used and JSON is returned.
    One set is HTML forms-- a <form> is used and <submit> is hit, and a new page loads.

    At the moment these are all /actions/endpointname.

    What would be the sensible way to do this?

    /actions and /forms ?

    Identical endpoints, but rpcs take an &rpc=1 term? Or forms take a &html=1 term? Actually that might be better because I could combine functions in the router.

    mccundefined 1 Risposta Ultima Risposta
    1
    • mccundefined mcc

      Okay so I need two sets of endpoints.
      One set is RPCs-- eg javascript Fetch is used and JSON is returned.
      One set is HTML forms-- a <form> is used and <submit> is hit, and a new page loads.

      At the moment these are all /actions/endpointname.

      What would be the sensible way to do this?

      /actions and /forms ?

      Identical endpoints, but rpcs take an &rpc=1 term? Or forms take a &html=1 term? Actually that might be better because I could combine functions in the router.

      mccundefined Questo utente è esterno a questo forum
      mccundefined Questo utente è esterno a questo forum
      mcc
      scritto su ultima modifica di
      #2

      I got too many responses to this to respond to each one individually so I just wanna say *all* the replies I got to this were really good and helpful, thank you

      1 Risposta Ultima Risposta
      1
      • Oblomovundefined Oblomov ha condiviso questa discussione
      Rispondi
      • Topic risposta
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti


      • Accedi

      • Accedi o registrati per effettuare la ricerca.
      • Primo post
        Ultimo post