Skip to content

ImDino/php_assignment_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP assignment 2

Part 1

Product example

{
    "id": 1,
    "title": "Fjällraven Backpack",
    "description": "Your perfect pack for everyday use and walks in the forest."
    "image": "https://picsum.photos/500?random=1",
    "price": 109.95,
    "category": "men clothing"
}

Part 2

note the /v2 path. Part 1 and 2 need to be seperate for this assignment

Demo

[
    {
        "Category": "Category not found"
    },
    {
        "Show": "Show must be between 1 and 20"
    }
]

Result

NOTE: Using JSON_PRETTY_PRINT for demonstration purposes.

V1

  • All items '/v2' can do the same w/o queries

V2

Security optimizations:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages