Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/markylaredo/aspnet-core-minimal-api

Aspnet Core minimal API with basic authentication and authorization setup. http://minimal-api-demo.somee.com/
https://github.com/markylaredo/aspnet-core-minimal-api

api authentication authorization demo-minamal dotnetcore6-minmal-api jwt jwt-authentication minamal-api-net-core-6 minimal minimal-api swagger

Last synced: about 2 months ago
JSON representation

Aspnet Core minimal API with basic authentication and authorization setup. http://minimal-api-demo.somee.com/

Awesome Lists containing this project

README

        

# ASP Net Core 6 Minimal API

[![Deploy to Hosting Site](https://github.com/markylaredo/aspnet-core-minimal-api/actions/workflows/somee-ftp-deploy.yml/badge.svg?branch=master)](https://github.com/markylaredo/aspnet-core-minimal-api/actions/workflows/somee-ftp-deploy.yml)
# Features
- Lightweight and fast API implementation using ASP.NET Core 6 Minimal API.
- Interact with student data, including retrieval, creation, update, and deletion of student records.
- Supports CRUD operations (Create, Read, Update, Delete) for student records.
- Uses JSON format for data exchange.
- Simple and intuitive endpoint structure for easy integration and usage.

# API Endpoint
This API endpoint allows you to interact with student data, including retrieving, creating, updating, and deleting student records.

## Request
### HTTP Method
- GET: Retrieve a list of all students
- POST: Create a new student record
- PUT: Update an existing student record
- DELETE: Delete a student record

### Request URL
- GET: `http://minimal-api-demo.somee.com/students`
- POST: `http://minimal-api-demo.somee.com/students`
- PUT: `http://minimal-api-demo.somee.com/students/{id}`
- DELETE: `http://minimal-api-demo.somee.com/students/{id}`

### Request Body
- POST: Include the following JSON object in the request body:
```json
{
"name": "Jazelle Laredo",
"level": "4",
"section": "A",
"academicYear": "2013-2014"
}

```

### Response Body
- POST: The response body for the HTTP POST request will contain the created student record in JSON format:
```json
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Jazelle Laredo",
"level": "4",
"section": "A",
"academicYear": "2013-2014"
}

```