Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saipraveenkondapalli/django-apis


https://github.com/saipraveenkondapalli/django-apis

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# API for portfolio websites

[![Testing Status](https://github.com/saipraveenkondapalli/django-apis/actions/workflows/django.yml/badge.svg)](https://github.com/saipraveenkondapalli/django-apis/actions/workflows/django.yml/badge.svg)

## Endpoints

>[!IMPORTANT]
> To make an api request to the backend, we need to verify the site requesting the resource. You need to provide site id with every request in the header or in the URL params
> The backend verifies the request with origin site and matches with the site id.

```
URL: https:////?site=
Header: X-SITE-ID:
```

| Endpoint | Description | Method | Request Body | Response Body |
|-------------------------------|--------------------------------------------------------|--------|----------------------|--------------------------------------------------|
| /api/contact/ | To store a contact form data | POST | name, email, message | {"status": "success"} |
| /api/resume/ | redirects to resume url | GET | | |
| /api/job-application-message/ | display a custom message to the visitor of the website | GET | | {"message": "Thank you for visiting my website"} |