https://github.com/barisertugrul/spring-boot-book-seller-learning-edition
Angular ve Spring Boot ile Full Stack Uygulama Geliştirme Kursu Eğitim Projesi (Backend)
https://github.com/barisertugrul/spring-boot-book-seller-learning-edition
java spring-boot
Last synced: 4 months ago
JSON representation
Angular ve Spring Boot ile Full Stack Uygulama Geliştirme Kursu Eğitim Projesi (Backend)
- Host: GitHub
- URL: https://github.com/barisertugrul/spring-boot-book-seller-learning-edition
- Owner: barisertugrul
- Created: 2021-11-30T21:40:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-10T05:06:56.000Z (over 3 years ago)
- Last Synced: 2025-01-16T06:33:34.391Z (5 months ago)
- Topics: java, spring-boot
- Language: Java
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-book-seller-learning-edition
Full Stack Application Development Course Learning Project with Angular and Spring Boot
Course: https://www.udemy.com/course/angular-ve-spring-boot-ile-full-stack-uygulama-gelistirme by Şenol Ataç### Endpoints
#### Sign-Up
```
POST /api/authentication/sign-up HTTP/1.1
Host: localhost:8080
Content-Type: application/json{
"name": "user",
"username": "user",
"password": "user"
}
```#### Sign-In
```
POST /api/authentication/sign-in HTTP/1.1
Host: localhost:8080
Content-Type: application/json{
"username": "user",
"password": "user"
}
```#### Make-admin
```
PUT /api/internal/make-admin/admin HTTP/1.1
Host: localhost:8080
Authorization: Bearer InternalApiKey1234!
```#### Save Book
```
POST /api/book HTTP/1.1
Host: localhost:8080
Authorization: Bearer ...admin
Content-Type: application/json
Content-Length: 119{
"title": "Test Book 2",
"price": 10,
"description": "Test description 2",
"author": "Test author 2"
}
```#### Delete Book
```
DELETE /api/book/2 HTTP/1.1
Host: localhost:8080
Authorization: Bearer ...admin
```#### Get All Books
```
GET /api/book HTTP/1.1
Host: localhost:8080
```#### Save Purchase
```
POST /api/purchase-history HTTP/1.1
Host: localhost:8080
Authorization: Bearer ...user or admin
Content-Type: application/json
Content-Length: 53{
"userId": 3,
"bookId": 1,
"price": 10
}
```#### Get User Purchases
```
GET /api/purchase-history HTTP/1.1
Host: localhost:8080
Authorization: Bearer ...user or admin
```