{"id":15196876,"url":"https://github.com/daniel-cottone/photoalbum-api","last_synced_at":"2025-09-12T18:05:34.114Z","repository":{"id":33064425,"uuid":"36701011","full_name":"daniel-cottone/PhotoAlbum-api","owner":"daniel-cottone","description":"RESTful API written in Java using Spring Framework.","archived":false,"fork":false,"pushed_at":"2015-11-13T18:57:54.000Z","size":410,"stargazers_count":25,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-01T11:24:49.656Z","etag":null,"topics":["crud-actions","java","rest","rest-api","restful","restful-api","spring","spring-boot","spring-data","spring-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniel-cottone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-02T01:53:24.000Z","updated_at":"2024-10-10T04:50:52.000Z","dependencies_parsed_at":"2022-09-03T14:01:19.849Z","dependency_job_id":null,"html_url":"https://github.com/daniel-cottone/PhotoAlbum-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-cottone%2FPhotoAlbum-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-cottone%2FPhotoAlbum-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-cottone%2FPhotoAlbum-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-cottone%2FPhotoAlbum-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-cottone","download_url":"https://codeload.github.com/daniel-cottone/PhotoAlbum-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238597386,"owners_count":19498396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud-actions","java","rest","rest-api","restful","restful-api","spring","spring-boot","spring-data","spring-framework"],"created_at":"2024-09-28T00:05:22.575Z","updated_at":"2025-02-13T04:31:44.649Z","avatar_url":"https://github.com/daniel-cottone.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#PhotoAlbum\n\n##About\nThis is an example RESTful API written in Java and Spring Framework. This project is intended to be a demonstration of how a REST API can be structured and designed using Spring Boot/Actuator and Spring Data.\n\n##Installation\nTo run this application you will first need to install a couple packages: jdk 1.7 and maven (you can also install these packages with yum, brew, etc.)\n\n```\nsudo apt-get install openjdk-7-jre\nsudo apt-get install maven\n```\n\nThis project is built using Spring Boot/Spring Actuator, which makes it very easy to get running. You can either run the application directly from maven: `mvn spring-boot:run`, or you can build the application package with `mvn clean package` and then run the jar directly: `java -jar target/PhotoAlbum-1.0-SNAPSHOT.jar`.\n\n##Usage\nThe default username/password for this application is `user:user`. To access any of the endpoints you will be prompted for authorization.\n\nThe relevant endpoints for this application are `/api/photos` and `/api/albums`. Both endpoints have the basic CRUD actions. For example, to view all photos, you can navigate to:\n\n```\nhttp://localhost:8080/api/photos\n```\n\nWhich should return the following JSON:\n\n```\n[\n  {\n    \"id\": \"1\",\n    \"title\": \"just me\",\n    \"createdDate\": \"2015-08-31T09:14:05.097-0500\",\n    \"filePath\": \"me.png\",\n    \"albumId\": \"1\"\n  },\n  {\n    \"id\": \"2\",\n    \"title\": \"another pic\",\n    \"createdDate\": \"2015-08-31T09:14:05.097-0500\",\n    \"filePath\": \"another.png\",\n    \"albumId\": \"1\"\n  },\n  {\n    \"id\": \"3\",\n    \"title\": \"profile photo\",\n    \"createdDate\": \"2015-08-31T09:14:05.098-0500\",\n    \"filePath\": \"profile.png\",\n    \"albumId\": \"1\"\n  },\n  {\n    \"id\": \"4\",\n    \"title\": \"at the beach\",\n    \"createdDate\": \"2015-08-31T09:14:05.098-0500\",\n    \"filePath\": \"beach.png\",\n    \"albumId\": \"2\"\n  },\n  {\n    \"id\": \"5\",\n    \"title\": \"at the park\",\n    \"createdDate\": \"2015-08-31T09:14:05.098-0500\",\n    \"filePath\": \"park.png\",\n    \"albumId\": \"2\"\n  }\n]\n```\n\nFor testing all of the CRUD actions, I recommend using [Postman](www.getpostman.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-cottone%2Fphotoalbum-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-cottone%2Fphotoalbum-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-cottone%2Fphotoalbum-api/lists"}