ASP.NET WebAPI
- [GET] /api/Interest
- [POST] /api/Interest
- [POST] /api/Interest/{personId}/link-interest/{interestId}
- [POST] /api/Interest/{personId}/interest/{interestId}/link
- [GET] /api/Person
- [POST] /api/Person
- [POST] /api/Person/{id}/interests
- [POST] /api/Person/{id}/links
[POST] http://localhost:5010/api/person
Body:
{
"name": "John Doe",
"phoneNumber": "123-456-7890"
}[POST] http://localhost:5010/api/person
Body:
{
"name": "Jane Doe",
"phoneNumber": "098-765-4321"
}[POST] http://localhost:5010/api/interest
Body:
{
"title": "Programming",
"description": "The art and science of coding."
}[POST] http://localhost:5010/api/interest
Body:
{
"title": "Cooking",
"description": "Everything about preparing food."
}[POST] http://localhost:5010/api/interest/1/link-interest/1
[POST] http://localhost:5010/api/interest/1/link-interest/2
[POST] http://localhost:5010/api/interest/2/link-interest/2
[POST] http://localhost:5010/api/interest/1/interest/1/link
Body:
{
"url": "https://example.com/some-interesting-article"
}[POST] http://localhost:5010/api/interest/1/interest/2/link
Body:
{
"url": "https://example.com/some-other-interesting-article"
}[POST] http://localhost:5010/api/interest/2/interest/2/link
Body:
{
"url": "https://example.com/a-third-interesting-article"
}[GET] http://localhost:5010/api/person