I am building a Node.js site with express, and am running into some difficulties. I have the site up stably, but I want to add some more functionality. I would like to add a function to add a page via an api. This means I need to do several things:
1. Create an API, where users can register and get a key to use.
2. Make the API add a page to the express site under a specific page (according to a template; just need to submit some data to fill in).
3. Create a bash script that can interface with this API via the issued token (this part I know how to do).
To be clear, I don't need full user functionality. Just a "registration" as a protection layer for the API key to avoid spammers.
If possible, I'd like the pages to go into some sort of "moderation que" before they go live, but this is not absolutely necessary.
Help is much appreciated.
Thanks!
dimanche 11 mars 2018
Node user add page & api
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire