Basic photo management API created with OpenAPI 3 that serve basic CRUD via HTTP
Ressources
Requests
Schemas
Example
- OpenAPI specification can be found here.
- Basics about HTTP requests and response codes can be found here.
| Type | Route | Request Body | Response Body |
|---|---|---|---|
| POST | /photo | Photo |
|
| GET | /photos | access |
|
| GET | /photo/{photo_id} | - |
|
| PUT | /photo/{photo_id} | Photo |
|
| DELETE | /photo/{photo_id} | - |
|
PhotoAttribute Type Conditions id string readOnly: truename string required:truemaxlenght: 20description string maxlenght: 100access string required:trueenum: [public, private]location string required:truefile string required:truecreated_date string required:trueformat: date-timeupdated_date string required:trueformat: date-timePhotosAttribute Type Description [Photo] array An array of photos SuccessAttribute Type Conditions message string - id string - ErrorAttribute Type Conditions message string -
Photo schema:
{
"name": "Photo_3",
"description": "My dog selfie",
"access": "public",
"location": "Skopje",
"file": "teddy_selfie.jpg",
"created_date": "1996-08-23T17:32:28Z",
"modified_date": "2020-12-27T23:45:28Z"
}