Skip to content

In this project I prove my knowledge in REST-API/minimal API and ER & UML-diagram. Its a console application where you can create users and add interesets to them. Users and intereset can be connected to multiple ends.

Notifications You must be signed in to change notification settings

mmxzps/Lab3-Mini-Projekt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


My first minimal API project



💡Call commands to interact with the API

🔷Person calls

➡️Add new person
🔸Use the endpoint "/person"
🔸E.G. → POST: http://localhost:5136/person

Input:
addperson

Output:
201Created


➡️Show all persons
🔸Use the endpoint "/person/persons/"
🔸E.G. → GET: http://localhost:5136/person/persons/

Output:
ShowAllPersons


➡️Show all information of one person
🔸Use the endpoint "/person/person-id"
🔸E.G. → GET: http://localhost:5136/person/1

Output:
ShowOnePerson


➡️Add interest to one person
🔸Use the endpoint "/person/person-id/interest"
🔸E.G. → POST: http://localhost:5136/person/1/interest

Input:
AddInterestToOnePerson

Output:
201Created


➡️Connect person to one interest
🔸Use the endpoint "/person/person-id/interests/interest-id"
🔸E.G. → POST: http://localhost:5136/person/1/interests/1

Output:
200OK


➡️Show all interests connected to one person
🔸Use the endpoint "/person/person-id/interests"
🔸E.G. → GET: http://localhost:5136/person/1/interests

Output:
ShowAllInterestOfOnePerson


➡️Add WebLinks to one person and their interest
🔸Use the endpoint "/person/person-id/interest-id/interest-web-link"
🔸E.G. → POST: http://localhost:5136/person/1/5/interest-web-link

Input:
AddWebLinkToPersonAndInterest

Output:
201Created


➡️Show all WebLinks connected to one person
🔸Use the endpoint "/person/person-id/interest-web-link/links"
🔸E.G. → GET: http://localhost:5136/person/1/interest-web-link/links

Output:
ShowAllWebLinksOfOnePerson



🔷Interest calls

➡️Create new Interest
🔸Use the endpoint "/interest"
🔸E.G. → POST: http://localhost:5136/interest

Input:
create-interest

Output:
201Created


➡️Show all Interest
🔸Use the endpoint "/interests"
🔸E.G. → GET: http://localhost:5136/interests

Output:

ShowAllInterests



🔷WebLink calls

➡️Show all WebLinks
🔸Use the endpoint "/interest-web-links"
🔸E.G. → GET: http://localhost:5136/interest-web-links

Output:

ShowAllWebLinks



ER diagram of the database

ER-minial-API-projekt - Sida 2

UML diagram of the program

UML-minial-API-projekt - Page 1

About

In this project I prove my knowledge in REST-API/minimal API and ER & UML-diagram. Its a console application where you can create users and add interesets to them. Users and intereset can be connected to multiple ends.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages