Simple API for the Africa Cup of Nation.
-
Install the App Engine Python SDK. See the README file for directions. You'll need Python 2.7 installed too.
-
Clone this repo with
git clone https://github.com/ouattararomuald/can-endpoints.git
-
Run the application locally with
cd can-endpoints dev_appserver.py .
-
Test your Endpoints by visiting the Google APIs Explorer (by default http://localhost:8080/_ah/api/explorer)
To deploy the application:
-
Use the Admin Console to create an app.
-
Replace
<your-app-id>
inapp.yaml
with the app id from the previous step. -
Invoke the upload script as follows (Source: Testing and Deploying an API Backend):
sdk-install-directory/appcfg.py update app-directory
where sdk-install-directory
is the directory where you installed the App Engine SDK, and app-directory
is the directory containing your backend code. (As shown, app-directory
is a subdirectory of the current directory; you could alternatively specify a full path.)
Full instructions for deploying are provided in the topic Uploading, Downloading, and Managing a Python App.
After you deploy, you can use the API Explorer to experiment with your API without using a client app by visiting:
https://your_app_id.appspot.com/_ah/api/explorer
Please see the contributing guide
Copyright 2015 Ouattara Gninlikpoho Romuald
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.