-
Notifications
You must be signed in to change notification settings - Fork 147
Project
ranjan-rk edited this page Dec 31, 2014
·
13 revisions
A step further to keep your set of APIs clean and separate is to create different projects within the same workspace. You can opt to create different projects when APIs are part of different modules, i.e. related to each other but providing totally different functionalities.
A Project is a top level entity within a workspace where all the request/response are organized.
In the left navigation column, click on + symbol against Projects. You can see a modal with project name and description fields to create the new project.
Getting projects within a workspace
GET http://localhost:8080/api/workspaces/{workspaceId}/projects
Getting project by Id
GET http://localhost:8080/api/workspaces/{workspaceId}/projects/{projectId}
Creating a new project
POST http://localhost:8080/api/workspaces/{workspaceId}/projects
{"name" : "New Project Name"}
Updating an existing project
PUT http://localhost:8080/api/workspaces/{workspaceId}/projects/{projectId}
{ “id” : projectId, "name" : “Another Project"}
Deleting an existing project
DELETE http://localhost:8080/api/workspaces/{workspaceId}/projects/{projectId}