Skip to content
No description, website, or topics provided.
C# ASP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Neat.Application
Neat.Data.Mongo
Neat.Data
Neat.Infrastructure.Security
Neat.Infrastructure.Session
Neat.Infrastructure.Validation
Neat.Infrastructure.WebApi
Neat.Infrastructure
Neat.Model
Neat.Postman
Neat.Service
Neat.Test.Integration
Neat.Web.Api
packages
.gitattributes
.gitignore
LICENSE
LICENSE.md
LICENSE.txt
Neat.sln
Neat.sln.DotSettings
README.md

README.md

Neat

Build status

Getting Started

  1. Pull this repo
  2. Build in VS2013+ (report any build errors as an Issue)
  3. Host the Neat.Web.Api project (IIS)
  4. Create new 'neat' database on your local MongoDB instance

Test:

<a href="http://localhost/neat/getall">http://localhost/neat/getall</a>

(replace 'localhost' as needed)

This should return an empty array:

[]

If this is what you get, congrats! You're all setup. If not, report an issue.

Next steps:

  • Make changes to the Neat.Model.NeatExample class. (Don't forget to rebuild!) For example:
public class NeatExample : BaseModel
{
	public string Name { get; set; }
	public DateTime CreateDate { get; set; }
	public int SomeNumber { get; set; }
	public string ETag { get; set; }
	public MoreNeatStuff More { get; set; }
}
  • Use your favorite REST client to POST to /neat:
{

}

(There are POSTMAN collections stored in the Neat.Postman directory.)

It's ok we didn't really send much of an object. It'll build the NeatExample saved to the db based on the default instance of the object.

You should get back a 204 No Content, that's good! The record saved (this is REST, so the 204 is the success code, but there is no content).

[
  {
    "name": null,
    "createDate": "0001-01-01T00:00:00Z",
    "someNumber": 0,
    "eTag": null,
    "more": null,
    "id": "a301f1eb-25cc-432e-9be7-1c06bf2368ef"
  }
]
  • Add a new Model class and Controller class, look at the the NeatExample and NeatController for guides. Hit those with similar API calls. Try creating a Customer Model and Controller then hitting http://localhost/customer/getall.
You can’t perform that action at this time.