Create a project
You create a project with a step-by-step wizard. The steps shown depend on the project type and on the options you select.
To start the wizard, open Projects and click New Microservice. If you don't have any project yet, click Create your first project.
Steps by type
| Step | REST API | IAM | Analytic API |
|---|---|---|---|
| Select Project Type | ✓ | ✓ | ✓ |
| Project Details | ✓ | ✓ | ✓ |
| Database Configuration | Except with the free MongoDB database | With the default identity provider | ✓ (BigQuery) |
| Select Identity Provider | Without the default identity provider | ||
| Git Synchronization | If selected | If selected | If selected |
| Review | ✓ | ✓ | ✓ |
1. Project type
Choose REST API, IAM or Analytic API (see Manage your projects), then click Next.
2. Project details
- Project Name (required): unaccented letters, numbers, spaces and
_. The name must be unique: if a project already has this name, the message "A Microservice with that name already exists" is shown. - Description (optional): what the API is for.
Depending on the type, options are shown under these fields:
| Option | Type | Effect |
|---|---|---|
| Link to a new free data base in MongoDB | REST API | Grizzly creates a hosted MongoDB database named after the project. The database step is skipped. |
| Continue with a default Identity Provider | IAM | Uses Grizzly's identity provider instead of choosing your own. |
| Security Configuration | REST API, Analytic API | Enables the API's security: its endpoints can then be protected by roles, set later on the project's page. |
| Git synchronisation | All | Links the project to a Git repository. |
To try it out quickly
For a REST API project, select Link to a new free data base in MongoDB: there's no database to prepare.
3. Database configuration
Choose the data source the API reads from and writes to:
- Look for the source in Search existing Data Sources..., or click Add New Source to create one.
- Click the source's card.
- Choose the Database from the list. For an Analytic API project, it's filled in automatically.
INFO
Only databases with at least one collection (or table) are listed. An Analytic API project only shows BigQuery sources.
Select an identity provider (IAM)
If you didn't select the default identity provider, choose one or more providers in Choose an Identity Provider. The Add button creates a new one.
Git synchronization
- Enter the GIT URL, then the Username and Password. For a GitHub repository, use a token in the Token (For Github Repos) field.
- Click Check Branchs to load the repository's branches.
- Choose the Branch, or enter the name of a new branch with Add Branch.
Grizzly checks access to the repository when you click Next.
4. Review
Check the summary (name, type, description, Git, security, database), then click Validate.
The project appears in the list. It already contains:
- a first release,
1.0.0; - an Untitled resource group (REST API project), ready for your endpoints;
- an Authentication Grizzly group if security is enabled. This group is managed by Grizzly.
Example: a store API
Let's create a REST API to manage a store's products, with a free database and security enabled.
- New Microservice → REST API → Next.
- Project Name:
Store. Description:Product catalog. - Select Link to a new free data base in MongoDB and enable Security Configuration.
- Click Next until the Review step, then click Validate.
Then open the Store project to add your endpoints.
What's next?
- Add your API's routes: Resource groups and endpoints.
- Evolve your API without breaking anything: Releases.
