A Simple Blog REST API with various Endpoint where logged users can Add, Update and Delete Blogs while unlogged users can only view the blogs
https://documenter.getpostman.com/view/14331044/UVC3jTC2
- Once you Register using the Register Endpoint.
- There Are 2 ways to use pass in the Login creditionals
- Create a New Collection in Postman.
- Click 3 dots on the side panel of the new Colletion you have created and Click Edit.
- Navigate to Authorization and Choose Type Basic Auth.
- Key in your Username and Password on the respective inputs and then Save.
- Create new requests inside the collection for By default they will be inheriting the creditionals from parent.
Second way
- Create a New request on Postman.
- Navigate to Authorization and Choose Type Basic Auth.
- Key in your Username and Password on the respective inputs and then Save.
Features :-
- User Can Register with username and password. Don't worry the Your Username will be unique)
- One Can Login Via one of the Endpoints
- Authorized Users Can Perform Crud Functionality
Need the latest browser to be able to View
Follow this link https://interblogapi.herokuapp.com/
It is hosted by heroku
To get the project .......
https://interblogapi.herokuapp.com/
cd interBlogapi && python3 -m venv envblog && source envblog/bin/activate
pip install -r requirements.txt
SetUp Database User,Password, Host then following Command
Create .env file
SECRET_KEY='<SECRET_KEY>'
DEBUG=True
DB_NAME='database name'
DB_USER='database user'
DB_PASSWORD='password'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
DISABLE_COLLECTSTATIC=1
python manage.py makemigrations mainblog
Now Migrate
python manage.py migrate
python3 manage.py server
Open the application on your browser 127.0.0.1:8000
.
Open Terminal type
python3 manage.py createsuperuser --username=<YOUR USERNAME> --email=<YOUR EMAIL>
Visit http://127.0.0.1/admin
-
HTML, CSS, Bootstrap
-
Git
-
Pythonp, Django Framework, Rest_framework
-
Heroku
- None at the Moment
@code_with_maingi (Twitter)
This Project is under the MIT license
Copyright (c) 2021 MaingiSamuel