Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eamanu/itcrowd
IT crowd test
https://github.com/eamanu/itcrowd
Last synced: 3 days ago
JSON representation
IT crowd test
- Host: GitHub
- URL: https://github.com/eamanu/itcrowd
- Owner: eamanu
- License: gpl-3.0
- Created: 2019-06-14T01:11:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:29:54.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T05:21:07.604Z (9 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# itcrowd
IT crowd test## Endpoints
* ```/SayHello```
* ```/GetAllPeople```
* ```/GetPersonByAlias``` : ```/GetPersonByAlias/The%20Rock```
* ```/GetPersonByFirstName```: ```/GetPersonByFirstName/Keanu```
* ```/GetPersonByLastName```: ```/GetPersonByLastName/Reeves```
* ```/Person```: ```{"first_name":[first_name], "last_name": [last_name], "alias":[alias]}```
* ```/Movies```: ```{"title": [title], "year": [year]}```
* ```/MovieList```
* ```/GetMoviesByTitle```: ```/GetMoviesByTitle/Matrix```
* ```/AddPersonToMovieAs```: ```{"alias": "Keanu", "like": "actor", "title": "The Matrix"}```## API Rules
```
api.add_resource(SayHello, '/SayHello')
api.add_resource(GetAllPeople, '/GetAllPeople')
api.add_resource(GetPersonByAlias, '/GetPersonByAlias/')
api.add_resource(GetPersonByFirstName, '/GetPersonByFirstName/')
api.add_resource(GetPersonByLastName, '/GetPersonByLastName/')
api.add_resource(SetPerson, '/Person')
api.add_resource(SetMovies, '/Movies')
api.add_resource(GetMoviesByTitle, '/Movies/')
api.add_resource(AddPersonToMovieAs, '/AddPersonToMovieAs')
api.add_resource(MoviesList, '/MoviesList')
```## Authentication
Create a collection named ```authentication``` and add {"user": [username],"password": [password]}
## ISSUES / PR created meanwhile this test
* https://github.com/dcrosta/flask-pymongo/pull/130 -> https://github.com/dcrosta/flask-pymongo/commit/681993b559585c7d414d364b35bdb66181a6ff7d# Why flask?
Becuase is a minimalist framework, and is was more easy and quickly develop this test.
# What modules used?
See ```requirements.txt``` :-)