An open API service indexing awesome lists of open source software.

https://github.com/brandonwingerair/spring-boot-photos-manager

Following a tutorial series by "Marco Codes" on YouTube.
https://github.com/brandonwingerair/spring-boot-photos-manager

Last synced: about 1 month ago
JSON representation

Following a tutorial series by "Marco Codes" on YouTube.

Awesome Lists containing this project

README

        

### Photos Path:
http://localhost:8080/photos

### Photo Path:
http://localhost:8080/photos/1

### Upload Path:
http://localhost:8080/upload.html

### Download Path:
http://localhost:8080/photos/download/IMAGE_ID

### H2 Database Console:
http://localhost:8080/h2-console

### POST call (browser console):

```
(async function createPhoto() {
let photo = { "filename": "post.jpg"};
await fetch('http://localhost:8080/photos', {
method: "POST",
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(photo)
}).then(result => result.text())
.then(text => alert(text));
})();
```

### DELETE call (browser console):

```
(async function deletePhoto(id) {
await fetch('http://localhost:8080/photos/' + id, {
method: "DELETE"
})
})("1");
```



Built following a tutorial by Marco Codes on YouTube