8000 GitHub - coquer/rest-api
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

coquer/rest-api

 
 

Repository files navigation

##1 - API application

Create a RESTful API that can do 2 basic operations: POST​ and GET​. (https://github.com/TanvirAlam/rest-api)

For the POST​ endpoint, the following content must be created:

  • Title, Description, Email, Image URL, Creation Date

        public function store(Request $request)
        {
            $validator = Validator::make($request->all(), [
                'title' => 'required',
                'description' => 'required',
                'email' => 'required|string|email|max:255',
                'image' => 'required'
            ]);
            if ($validator->fails()) {
                return $this->sendError('Validation Error.', $validator->errors());
            }
            $offer = Offer::create($request->all());
            return response()->json($offer, 201);
        }
    

##2 - Administrator Panel application (https://github.com/TanvirAlam/rest-api-admin)

API Bonus

  • HTTP methods (PUT, DELETE)
  • Validatio
  • Unit tests
  • Documentation (Api Readme.md and phpdoc)
  • Github

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.5%
  • HTML 2.9%
  • Vue 0.6%
0