Petstore is a sample API that simulates a pet shop management server🐶

Related tags

API pet-store-api
Overview

🐰 Pet Store API 🐾

🐙 Project

Petstore is a sample API that simulates a pet shop management server. The API allows you to access Petstore data using a set of individual calls

🐋 To get started

  1. Run git clone https://github.com/WilmerRS/pet-store-api.git.
  2. Run composer install
  3. Run cp .env.example .env or copy .env.example .env
  4. Run php artisan key:generate
  5. Run php artisan migrate
  6. Run php artisan db:seed
  7. Run php artisan serve
  8. Run php artisan storage:link
  9. Enjoy! 🎊

🐣 Features

  • Authentication and Authorization
  • Roles by user
  • Create and get operations for users
  • Create, Search, Update and Get all operations for pets
  • CRUD operations for categories
  • CRUD operations for status
  • Pictures for pets and image treatment

🐻‍❄️ HTTP Schema

🐈‍⬛ Pet

GET /pets

  • /pets?paginated=10&page=1
  • /pets?category_id=1&status_id=1
GET /pets
{
  "code": 200,
  "message": "Pets retrieved successfully.",
  "data": {
    "pet": [
      {
        ...
        "category": {
          ...
        },
        "status": {
          ...
        }
      }
    ]
  }
}

GET /pets/{pet-slug}

GET /pets/my-dog
{
    "code": 200,
    "message": "Pet retrieved successfully.",
    "data": {
        "pet": {
            ...
            "category": {
                ...
            },
            "status": {
                ...
            }
        }
    }
}

POST /pets

POST /pets
{
  "name": "name3",
  "slug": "slug4",
  "description":" description",
  "category_id": 1,
  "status_id": 1
}

PATCH /pets

PATCH /pets
{
  "name": "name3",
  "description":" description",
  ...
}

🗄️ Models

🐈‍⬛ Pet

Pet = {
  id: string,
  name: string,
  category: Category,
  status: Status,
  is_active: string,
  created_at: date,
  updated_at: date,
}
You might also like...
RecordManager is a metadata record management system intended to be used in conjunction with VuFind.

RecordManager is a metadata record management system intended to be used in conjunction with VuFind. It can also be used as an OAI-PMH repository and a generic metadata management utility.

This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses and the like.
This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses and the like.

Simple PHP API v.1.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses a

微信支付 API v3 的 PHP Library,同时也支持 API v2

微信支付 WeChatPay OpenAPI SDK [A]Sync Chainable WeChatPay v2&v3's OpenAPI SDK for PHP 概览 微信支付 APIv2&APIv3 的Guzzle HttpClient封装组合, APIv2已内置请求数据签名及XML转换器,应

This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.
This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.

PHP API TO-DO-LIST v.2.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science cours

API documentation API SCB EASY APP

SCB-API-EASY V3.0 API documentation SIAM COMMERCIAL BANK PUBLIC COMPANY LTD. API SCB Easy V3 endpoint = https://fasteasy.scbeasy.link 1.0. Get balance

Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota & International
Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota & International

Courier API Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota (dalam negeri) & International

Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.
Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.

Laravel API tool kit and best API practices Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using lar

LaraBooks API - Simple API for iOS SwiftUI app tests.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Simple PHP API client for tube-hosting.com rest API

Tube-Hosting API PHP client Explanation This PHP library is a simple api wrapper/client for the tube-hosting.com api. It is based on the provided docu

Owner
Wilmer Rodríguez S
🤓 Software developer 💻. From 🇨🇴.
Wilmer Rodríguez S
Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and / or RESTful API

Luracast Restler ![Gitter](https://badges.gitter.im/Join Chat.svg) Version 3.0 Release Candidate 5 Restler is a simple and effective multi-format Web

Luracast 1.4k Dec 14, 2022
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
Open source API management platform

About Fusio is an open source API management platform which helps to build and manage REST APIs. Fusio provides all tools to quickly build an API from

Apioo 1.2k Jan 4, 2023
DreamFactory API Management Platform

Instant APIs without code Docs ∙ Try Online ∙ Contribute ∙ Community Support ∙ Get Started Guide Table of Contents Platform Overview Installation Opti

DreamFactory Software, Inc. 1.3k Dec 30, 2022
Official docker container of Fusio an open source API management system

Fusio docker container Official docker container of Fusio. More information about Fusio at: https://www.fusio-project.org Usage The most simple usage

Apioo 28 Dec 13, 2022
The efficient and elegant JSON:API 1.1 server library for PHP

Woohoo Labs. Yin Woohoo Labs. Yin is a PHP framework which helps you to build beautifully crafted JSON:APIs. Table of Contents Introduction Features W

Woohoo Labs. 237 Nov 28, 2022
ohmyga's API Server

ohmyga's API Server

O's API 9 Oct 8, 2022
The server component of API Platform: hypermedia and GraphQL APIs in minutes

API Platform Core API Platform Core is an easy to use and powerful system to create hypermedia-driven REST and GraphQL APIs. It is a component of the

API Platform 2.2k Dec 27, 2022
Syntax to query GraphQL through URL params, which grants a GraphQL API the capability to be cached on the server.

Field Query Syntax to query GraphQL through URL params, which grants a GraphQL API the capability to be cached on the server. Install Via Composer com

PoP 4 Jan 7, 2022