An REST API for testing purpose using Nodejs, Expressjs and hosted on Heroku with MongoDB Atlas. Document specification powered by SwaggerUI.
API Endpoints: http://atwt-api.herokuapp.com/
API docs: https://atwt-api.herokuapp.com/api-docs/
- Update 26/06/2021: Add GET methods with multiple conditions for all endpoints (Swagger docs updated)
- Update 25/06/2021: Add GET methods with multiple conditions
- Update 24/06/2021: Add PUT methods for objects
- Update 30/06/2021: Add Docker file
There are 6 endpoint groups available now:
-
User
/user : Get users with conditions
/user/{userId} : Get specific user
-
Car
/car : Get cars with conditions
-
Factory
/factory : Get factories with conditions
/factory : Update existing factory
/factory/{factoryId} : Get specific factory
-
Food
/food : Get foods with conditions
-
Zoo
/zoo : Get zoos with conditions
/zoo/{zooId} : Get specific zoo
-
Animal
/animal : Get animals with conditions
e.g: To get all animals
https://atwt-api.herokuapp.com/v1/animal
Give it a try:
docker build . -t atwt-api
docker images
docker run -d -p 3000:3000 --name atwtapi atwt-api
-d for running background mode (not attached to current session)
-p for specfiying in and out ports
--name for specifying container name
docker container ls
docker stop atwtapi
docker rm atwtapi
docker rmi atwt-api
Copyright 2020 Tuyen Nguyen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.