GithubHelp home page GithubHelp logo

puzzleshop's Introduction

Simple REST API

This is example project of making API with ASP.NET Core.

API interaction

Tip

✔️ - provided query is free to use ⚠️ - query in developement or not fully tested ❌ - query is not implemented or don't work properly

List of queries for unauthorized access

  • ✔️ GET /Puzzle/result?search&page - return puzzles by search parameters
  • ✔️ GET /Puzzle/{puzzleId} - return puzzle by puzzleId
  • ✔️ GET /Brand/result?search&page - return brands by search parameters
  • ✔️ GET /Brand/{brandId} - return brand by brandId
  • ✔️ GET /Brand/{brandId}/owned?search&page - return puzzles by search parameters that owned by brand with given brandId

User information

  • ✔️ GET /User/{userId} - return public information about user by userId

  • ✔️ GET /User/{userLogin} - return public information about user by userLogin

  • ✔️ GET /User/{userId}/private - return private information about user by userId, can be managed by account owner, used to making orders

    request body
      Content-Type: application/json
      {
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ GET /User/{userLogin}/private - return private information about user by userLogin, can be managed by account owner, used to making orders

    request body
      Content-Type: application/json
      {
        "email": "email",
        "password": "user_password"
      }
    

Sign up, managing your account

  • ✔️ POST /User/create - create account providing email and password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "surname": "surname",
        "login": "login",
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /User/{userId}/update_password - update account password providing email, old and new password

    request body
      Content-Type: application/json
      {
        "new-password": "new_user_password",
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /User/{userId}/update - update account password providing email, old and new password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "surname": "surname",
        "login": "login",
        "address": "address",
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ DELETE /User/{userId}/delete - deleting account from database

    request body
      Content-Type: application/json
      {
        "email": "email",
        "password": "user_password"
      }
    

List of queries for managing your puzzles

  • ✔️ POST /Puzzle/create - create puzzle providing email and password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "description": "description",
        "image_url": "image_url",
        "price": "price",
        "amount": "amount",
        "brand_id": "brand_id"
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /Puzzle/{puzzleId}/update - update puzzle providing email and password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "description": "description",
        "image_url": "image_url",
        "price": "price",
        "amount": "amount",
        "brand_id": "brand_id"
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /Puzzle/{puzzleId}/delete - delete puzzle providing email and password

    request body
      Content-Type: application/json
      {
        "email": "email",
        "password": "user_password"
      }
    

List of queries for managing your brand, requires authorization and to be a brand owner

  • ✔️ POST /Brand/create - create brand providing email and password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "description": "description",
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /Brand/{brandId}/update - update brand providing email and password

    request body
      Content-Type: application/json
      {
        "name": "name",
        "description": "description",
        "email": "email",
        "password": "user_password"
      }
    
  • ✔️ POST /Brand/{brandId}/delete - delete brand providing email and password

    request body
      Content-Type: application/json
      {
        "email": "email",
        "password": "user_password"
      }
    

puzzleshop's People

Contributors

dmitrykalinovskyi 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.