Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codevate/public-api-blog-post-example

A companion project for our blog post describing how to secure public APIs client-side.
https://github.com/codevate/public-api-blog-post-example

api-security oauth2 oauth2-server php public-api symfony-api symfony-application symfony2

Last synced: 4 months ago
JSON representation

A companion project for our blog post describing how to secure public APIs client-side.

Awesome Lists containing this project

README

        

# Public OAuth API

A companion Symfony project for our blog post on securing client-side public API access with OAuth 2 and Symfony.

## Getting started

Install dependencies:

```
composer install
```

Create the database and setup the schema:

```
php app/console doctrine:database:create --if-not-exists
php app/console doctrine:schema:update --force
```

Create a new company in the database, then generate an OAuth client:

```
php app/console app:oauth-client:create
```

Create a new restaurant in the database, then generate a hashid for it:

```
php app/console app:restaurant:encode-id
```

Start the server:

```
php app/console server:run
```

Then follow the "Calling the API" section in the blog post.

## About Codevate
Codevate is a specialist [UK mobile app development company](https://www.codevate.com/) that builds cloud-connected software. This repository was created for a blog post about a [custom web application development](https://www.codevate.com/services/web-development) project and was written by [Chris Lush](https://github.com/lushc).