Skip to content

ASP.Net web app and API for creating and managing and querying a simple Class tree.

Notifications You must be signed in to change notification settings

Hamuda-Anfoune/Simple-Class-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Class-Tree

ASP.Net web app and API for creating and managing and querying a simple Class tree.

NOTES:

  1. This project uses a remot SQL Server deployed on Azure.

  2. Added a Root class with CID - 0 and PID = Null, because:

  • System checks the new class' PID before saving,
  • It has to match an existing CID,
  • therefore, a Root was needed to have all first level classes as its children.
  1. The default output of the api was application/xml: the class BrowserJsonFormatter.cs configures default output to application/json it is registered and added as a formatter in WebApiConfig.cs.

  2. ClassController is for the web GUI functionality

  3. CheditorClass is for the API functionality


TECHNOLOGIES & TECHNIQUES:

  1. Remote JS/AJax (Client-side) model validation:
  1. Server-side model validation for posted Create() model
  1. Json formatter:
  • Loocation: ~/BrowserJsonFormatter.cs at project main folder Register above class at App_Start/WebAPIConfig.cs
  • Usage: formats all API output into JSON
  • Source: Stackoverflow.com
  1. Optional API Paramerters:
  1. Entity Framework

FUTURE WORK:

  1. Optimise model validation for both controllers

  2. Enable muliti classes addition using JSON

  3. Manipulate JSON responses for API

  4. Add a tree view for Index() in ClassController

  5. Fix Name validation bug when trying to post to Edit().

About

ASP.Net web app and API for creating and managing and querying a simple Class tree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published