API url: https://sistech-api.vercel.app/
Documentation: https://ristek.link/SistechAPI
-
Download postman from here https://www.postman.com/ and then downnload the documentation from the link given above.
-
Open your previously installed postman, and navigate to the personal space import menu and click it.
Upload the docuemntation file that you downloaded previously and click import.
The API work on a simple authentication method, an API token that you need to previously register. From the recently imported documentation in postman select the Create API token.
This request have one body argument name, replace the guest with your name and hit send.
example:
{
"name": "ristek lovers"
}
The response is an API token that you will used in future request, so kindly save it or if you ever forget it just create a new one. (All your blog post will be associated with you API token).
For future API request please set this API token in your authorization header.
example:
{
"authorization": "bearer {API TOKEN GOES HERE}"
}
remember to always use the bearer prefix. In the postman you can simply head to authorization menu and select bearer and the paste your api token.
If you can't access the server you can run the server locally by doing this step: (you need node.js to run this locally so kindly install it first if you don't have it)
-
Clone the repository
git clone [email protected]:RistekCSUI/sistech-api.git
-
Cd into the directory
cd sistech-api
-
Install all depedencies
yarn
-
Run the server
yarn dev
The server is hosted in http://localhost:5000