Giter Club home page Giter Club logo

rpg-game's Introduction

RPG Game API using .NET Core Web API

This is an RPG game API built using .NET Core Web API and utilizing .NET 7 SDK. The game uses SQLite for data storage and Swagger for API documentation. Authentication is implemented using JWT.

Prerequisite

  • .NET 7 SDK
  • Sqlite

API Documentation

The API documentation can be accessed by running the application and visiting the following URL:

https://localhost:<port>/swagger

swagger_test.png

Security

JWT authentication is implemented using the Microsoft.AspNetCore.Authentication.JwtBearer package. The .env file contains the secret key used for JWT generation and validation.

Usage

The API contains the following endpoints:

User Registration

POST /api/User/Register Allows users to register by providing a username and password in the request body.

Example Request Body:

{
    "username": "username",
    "password": "password"
}

User Login

POST /api/User/Login Allows users to login by providing a username and password in the request body. Returns a JWT token to be used for authentication.

Example Request Body:

{
    "username": "username",
    "password": "password"
}

Character Creation, Update, Remove, Add Weapon/ Skills

Fight (Attack by weapon, skill, auto combat)

rpg-game's People

Contributors

miyuki19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.