Alpha travel and tourism project showcases CQRS and clean architecture of RESTful Web Api.
V1.0
https://localhost:44351/api/v1/customers
{
"href": "https://localhost:44351/api/v1/customers",
"method": "GET",
"rel": [
"collection"
],
"offset": 0,
"limit": 25,
"total": 5,
"first": {
"href": "https://localhost:44351/api/v1/customers",
"method": "GET",
"rel": [
"collection"
]
},
"data": [
{
"href": null,
"method": "GET",
"id": 1,
"firstname": "John",
"surname": "Richard",
"password": "password123",
"email": "[email protected]",
"created_on": "2019-03-18T12:49:44Z",
"created_by": "SeedDataService",
"modified_on": "0001-01-01T00:00:00Z"
},.......
https://localhost:44351/api/v1/customers?Offset=0&Limit=50
{
"href": "https://localhost:44351/api/v1/customers",
"method": "GET",
"rel": [
"collection"
],
"offset": 0,
"limit": 50,
"total": 5,
"first": {
"href": "https://localhost:44351/api/v1/customers",
"method": "GET",
"rel": [
"collection"
]
},
"data": [
{
"href": null,
"method": "GET",
"id": 1,
"firstname": "John",
"surname": "Richard",
"password": "password123",
"email": "[email protected]",
"created_on": "2019-03-18T12:49:44Z",
"created_by": "SeedDataService",
"modified_on": "0001-01-01T00:00:00Z"
},......
https://localhost:44351/api/v1/customers/22
{
"id": "22"
"firstname": "John",
"surname": "Richard",
"password": "password123",
"email": "[email protected]",
"created_on": "2019-03-18T12:49:44Z",
"created_by": "WebApi"
}
https://localhost:44351/api/v1/customers
{
"id": "22"
"firstname": "John",
"surname": "Richard",
"password": "password123",
"email": "[email protected]",
"modified_on": "2019-03-18T12:49:44Z",
"modified_by": "WebApi"
}
https://localhost:44351/api/v1/customers/1
https://localhost:44351/api/v1/customers/1
{
"firstname": "John",
"surname": "Richard",
"password": "password123",
"email": "[email protected]",
"modified_on": "2019-03-18T12:49:44Z",
"modified_by": "WebApi"
}