Skip to content

Rashaali84/AplaudoApi

Repository files navigation

Aplaudo - API

Table of contents

General info

Live Link for the API https://aplaudoapi.azurewebsites.net/ This repository is a back-end API that is made to serve the front-end website https://aplaudo.herokuapp.com/app.html. It is a back-end which manages artists regiseration to perform different activites .

Technologies

This project is created with:

  • C# , OOP , .NET MVC 5 , .NetFramework 4.6 , MSSQLSERVER for the DB

  • AZure for deployment .

Project Structure

  • MVC ( Models - Views - Controllers) have been used as a model for this project.

  • Data Modeling using database first approach entity framework .

  • Controllers are as follows

    • Artists
      • Api calls for artist ->
        • https://aplaudoapi.azurewebsites.net/api/artists/ GET

        • https://aplaudoapi.azurewebsites.net/api/artists/ POST

          {"ArtistFirstName": "Rasha","ArtistLastName": "Ali",  "ArtistNickName": "Rasha", "EmailAddress":  "Rashaali@gmail.com", "Password": "123456", "Bio":"Here is my Bio","PhotoLink":"http://wwww.google.com/2","Spotify":"sot",  "YouTube":"http://wwww.google.com/2","iTunes":"tunes","SoundCloud":"sound", "WebSite":"http://wwww.google.com/2", "LinkedIn":"http://wwww.google.com/linkedin","CountryName":"Belgium","StyleNames": [ { "StyleName":"Asian"}, {"StyleName": "African"} ], "InstrumentNames": [ { "InstrumentName":"accordion"},{ "InstrumentName": "bass"},{ "InstrumentName": "Piano"}] }    *Success : Response http status code : 201 created -- Response body :  "Your account is created successfully."Already registered Response http status code : 302 Found-- ""You have already created an account."*  ```
        • https://aplaudoapi.azurewebsites.net/api/artists/userlogin POST

          {  "EmailAddress":  "Dam_h@gmail.com", "Password":"gbvfgt5#hhd"} *"Failed :  404 not found "Wrong user credentials."Success : 200 ok"* ```
        • https://aplaudoapi.azurewebsites.net/api/artists/changepassword PUT

          {  "EmailAddress":  "Dam_h@gmail.com", "Password":"gbvfgt5#hhd"} *"Failed :  404 not found "Wrong user credentials."Success : 200 ok"* ```
        • https://aplaudoapi.azurewebsites.net/api/artists/ PUT -- update an artist

          ```ruby
           {"ArtistFirstName": "Rasha","ArtistLastName": "Ali",  "ArtistNickName": "Rasha", "EmailAddress":  "Rashaali@gmail.com", "Password": "123456", "Bio":"Here is my Bio","PhotoLink":"http://wwww.google.com/2","Spotify":"sot",  "YouTube":"http://wwww.google.com/2","iTunes":"tunes","SoundCloud":"sound", "WebSite":"http://wwww.google.com/2", "LinkedIn":"http://wwww.google.com/linkedin","CountryName":"Belgium","StyleNames": [ { "StyleName":"Asian"}, {"StyleName": "African"} ], "InstrumentNames": [ { "InstrumentName":"accordion"},{ "InstrumentName": "bass"},{ "InstrumentName": "Piano"}] }    *Success : Response http status code : 201 created -- Response body :  "Your account is created successfully."Already registered Response http status code : 302 Found-- ""You have already created an account."*
          
        • https://aplaudoapi.azurewebsites.net/api/artists/{artistid} DELETE

        • https://aplaudoapi.azurewebsites.net/api/concerts?emailaddress=par@gmail.com GET

  • Concerts - https://aplaudoapi.azurewebsites.net/api/concerts POST

           ```ruby {  "ConcertId":14,  "About":"This concert is really fun and different let' stry to update ", "ConcertTitle":"Title is really what matters","Style":"African","Date":"12/01/2010","ConcertLink":"http://wwww.google.com/44", "PictureLink":"http://wwww.google.com/442","ProgrammaLink":"http://wwww.google.com/44", "TeaserLink":"http://wwww.google.com/44", "CountryName":"Belgium","InstrumentationValue":"Solo","ArtistEmails": [{"EmailAddress": "par@gmail.com"}, {"EmailAddress": "rasaa@gmail.com"}, {"EmailAddress": "Ralyy.MM@gmail.com"}], "InstrumentNames":[{"InstrumentName":"accordion"},{"InstrumentName":"bass"},{"InstrumentName":"Piano"}]}Response:{ "About": "Concert about acting in the heart of brussels in the heart of Europe in chrismas an all over the world last check final","ConcertId": 16, "ConcertLink": "http://wwww.google.com/1"}201 Created http status code  ```
    

Setup

Clone this repository and start using it with your visual-studio 2017 or higher editor. Download the db scripts and run it over a MSSQLSERVER editor with db name AplaudoDB.

Use Case Diagram

Here you are the use case of the project for the two releases v1, V2 . usecase

Databases Scripts - MSSQL

ER

This is the sql scripts for the db Aplaudo DB Scripts SQL -- Download from here

Screen Capture of Project

Screenshot

Architect Design Diagram

Architect-Design

Demo of Project

the front-end website https://aplaudo.herokuapp.com/app.html.

Project Status

Project is finished the must have use cases .

  • As an artists, I want to create a livestream concert event
  • As a spectator, I want to watch a livestream concert
  • As an artist, I want to create my artist profile.
  • As an artist, I want to edit my artist profile.
  • As a spectator, I can search for artists and concerts

Business Function done so far withing thr crud operation of Artis and concerts models

  • Checking already registered emails
  • Concerts collaborators must be system users and registered in the system .
  • Hashing passwords usin Hash and salt technique in .Net frameworl.
  • CORS Eenabling check .

To be done ..

  • The rest of user stories in this file .Aplaudo User Stories
  • JWT authentication.

Contact

Contact reposiroty contributors for more details.

About

an API web service for Aplaudo C# MVC 5 SQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published