ECHO-CRUD
Restful with mongodb + koa ❤️
Pdta: ECHO (Elian Chancay Olivo is my Son 👶 It's funny because I do not like php )
Developing ... 🏃
How to use
; ; ; const app = ; const mongoUrl = 'mongodb://localhost/yourDatabase'; mongoose; let schema = name: String age : Number versionKey: false; const model = appmodel = mongoose; const user = ; app; app;
Use header X-Requested-With : XMLHttpRequest
test in your browser. http://localhost:3000/users
-- | Params | query | body |
---|---|---|---|
GET | limit - skip - sort | --- | |
GET | id | limit - skip - sort | --- |
POST | --- | --- | Json data |
DELETE | id* | --- | --- |
PUT | id* | --- | Json data |