File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Authentication and authorization
2
2
3
- KEYCLOAK_URL=http ://172.18.1.3:8081 /aiod-auth/ # This corresponds to UNIZAR's testing Keycloak instance. Replace if necessary
3
+ KEYCLOAK_URL=https ://aiod-dev.i3a.es /aiod-auth/ # This corresponds to UNIZAR's testing Keycloak instance. Replace if necessary
4
4
KEYCLOAK_REALM=aiod
5
5
KEYCLOAK_CLIENT_ID=mylibrary-backend # a private client, used by the backend
6
6
KEYCLOAK_CLIENT_ID_SWAGGER=marketplace # a public client, used by frontend and Swagger
Original file line number Diff line number Diff line change 9
9
load_dotenv ()
10
10
11
11
client = motor .motor_asyncio .AsyncIOMotorClient (os .environ ["DB_URL" ])
12
- database = client .marketplace
12
+ database = client .mylibrary
13
13
libraries_collection = database .get_collection (
14
14
os .getenv ("DB_LIBRARIES_COLLECTION" )
15
15
)
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ async def delete_library_asset(
92
92
)
93
93
94
94
@LibrariesRouter .post (
95
- "/{id_user}/purchases " ,
95
+ "/{id_user}/assets " ,
96
96
response_description = "Add new items to a user's library. \
97
97
If this is the first time a user acquires items, the library is created"
98
98
)
Original file line number Diff line number Diff line change 1
- version : ' 3.8'
1
+ version : " 3.8"
2
2
3
3
services :
4
4
api :
5
+ container_name : mylibrary-backend-api
5
6
build : ./app
6
7
volumes :
7
8
- .:/code
@@ -12,12 +13,12 @@ services:
12
13
depends_on :
13
14
- db
14
15
db :
16
+ container_name : mylibrary-backend-db
15
17
image : mongo
16
18
ports :
17
19
- 37017:27017
18
20
volumes :
19
- - db:/data/db
20
-
21
+ - mylibrary-backend-db:/data/mylibrary-backend-db
21
22
22
23
volumes :
23
- db:
24
+ mylibrary-backend- db:
You can’t perform that action at this time.
0 commit comments