This project created from this title.
git clone https://github.com/q00Dree/fastapi-based-microservices.git \
&& cd fastapi-based-microservices \
&& cd deploy \
&& bash deploy.sh
- Movies documentation.
curl -X 'GET' \
'http://localhost:8080/api/v1/movies/docs' \
-H 'accept: application/json'
- Casts documentation.
curl -X 'GET' \
'http://localhost:8080/api/v1/casts/docs' \
-H 'accept: application/json'
- Create casts.
curl -X 'POST' \
'http://localhost:8080/api/v1/casts/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Samuel Jackson",
"nationality": "USA"
}'
- Create movies.
curl -X 'POST' \
'http://localhost:8080/api/v1/movies/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Pulp Fiction",
"plot": "Tarantino's best plot ever.",
"genres": ["Comedy","Neo-noir","Crime"],
"casts_id": [1]
}'
- Show all movies.
curl -X 'GET' \
'http://localhost:8080/api/v1/movies/' \
-H 'accept: application/json'
- Find and show info about casts by given id.
curl -X 'GET' \
'http://localhost:8080/api/v1/casts/1/' \
-H 'accept: application/json'
- Find and show info about movies by given id.
curl -X 'GET' \
'http://localhost:8080/api/v1/movies/1/' \
-H 'accept: application/json'
- Update movies by given id and data in the body.
curl -X 'PUT' \
'http://localhost:8080/api/v1/movies/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Pulp Fiction.",
"plot": "Tarantino's best plot ever. No need to film second part.",
"genres": ["Comedy","Neo-noir","Crime"],
"casts_id": [1]
}'
- Delete movies by given id.
curl -X 'DELETE' \
'http://localhost:8080/api/v1/movies/1' \
-H 'accept: application/json'