philipeano / actorsgallery Goto Github PK
View Code? Open in Web Editor NEWA simple REST API that enables users to fetch information about motion picture episodes and characters, and post comments.
Home Page: http://actorsgallery.herokuapp.com
A simple REST API that enables users to fetch information about motion picture episodes and characters, and post comments.
Home Page: http://actorsgallery.herokuapp.com
Define CharacterData
class to implement ICharacterData
interface.
Implement the following required methods:
GetAllCharacters()
(with optional sort parameters FirstName, LastName or Gender)GetAllCharacters()
(with optional filter parameters Gender, Status or Location)Implement the following additional methods:
CreateCharacter()
UpdateCharacter()
DeleteCharacter()
Define CommentData
class to implement ICommentData
interface.
Implement the following required method:
Created
DESC; each Comment object includes CommenterIPAddress
and Created
)Implement the following additional methods:
GetCommentsByEpisode()
UpdateComment()
DeleteComment()
Define EpisodeData
class to implement IEpisodeData
interface.
Implement the following required methods:
GetAllEpisodes()
(sorted by ReleaseDate
ASC; each Episode
object includes NumOfComments
)SearchByCharacter()
(accepts a CharacterName
argument; returns list of episodes the character featured in)AddComment()
(accepts a Comment
argument; enables users post comments targeting an episode)Implement the following additional methods:
AddCharacter()
(necessary for populating episodes with characters)CreateEpisode()
UpdateEpisode()
DeleteEpisode()
Fetcher
class for routine, repetitive data retrievalValidator
class for all input validation needsFormatter
class for custom rendering of HTTP responsesStartup.cs
for dependency injectionStartup.cs
Define Characters controller class with the following actions:
GET
/api/characters?sort_by={key}&sort_dir={dir}GET
/api/characters?filter_key={key}&filter_val={value}Define LocationData
class to implement ILocationData
interface.
Implement relevant CRUD methods:
Define interfaces, one for each entity:
ICharacterData
interfaceIEpisodeData
interfaceILocationData
interfaceICommentData
interfaceDefine entity classes with their respective properties:
Character
classLocation
classEpisode
classComment
classDefine enumeration types required in entity classes:
Status
enum (active | dead | unknown)Gender
enum (male | female)Enhance entity definitions with:
Define Episodes controller class with the following actions:
GET
/api/episodesGET
/api/episodes?q=char_name:{value}POST
/api/episodes/{id}/commentsDefine Locations controller class with the following actions:
GET
/api/locationsPOST
/api/locationsDefine Comments
controller class with the following actions:
GET
/api/commentsA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.