123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- {
- "get": {
- "tags": ["Teams"],
- "description": "Return a list of projects bound to a team.",
- "operationId": "List a Team's Projects",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization the team belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "in": "path",
- "description": "The slug of the team to get.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "../../components/schemas/project.json#/TeamProjects"
- }
- },
- "example": [
- {
- "slug": "the-spoiled-yoghurt",
- "name": "The Spoiled Yoghurt",
- "hasAccess": true,
- "teams": [
- {
- "id": "542609",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- }
- ],
- "platform": null,
- "firstEvent": null,
- "isMember": false,
- "team": {
- "id": "542609",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- },
- "dateCreated": "2020-08-20T14:36:34.171255Z",
- "isBookmarked": false,
- "id": "5398494",
- "latestDeploys": null,
- "features": [
- "custom-inbound-filters",
- "discard-groups",
- "rate-limits",
- "data-forwarding",
- "similarity-view",
- "issue-alerts-targeting",
- "servicehooks",
- "minidump",
- "similarity-indexing"
- ]
- }
- ]
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Team not found"
- }
- },
- "security": [
- {
- "auth_token": ["project:read"]
- }
- ]
- },
- "post": {
- "tags": ["Teams"],
- "description": "Create a new project bound to a team.",
- "operationId": "Create a New Project",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization the team belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "in": "path",
- "description": "The slug of the team to create a new project for.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "required": ["name"],
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new project."
- },
- "slug": {
- "type": "string",
- "description": "Optional slug for the new project. If not provided a slug is generated from the name."
- }
- }
- },
- "example": {
- "name": "The Spoiled Yoghurt",
- "slug": "the-spoiled-yoghurt"
- }
- }
- },
- "required": true
- },
- "responses": {
- "201": {
- "description": "Created",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/project.json#/Project"
- },
- "example": {
- "status": "active",
- "name": "The Spoiled Yoghurt",
- "color": "#bf6e3f",
- "isInternal": false,
- "isPublic": false,
- "slug": "the-spoiled-yoghurt",
- "platform": null,
- "hasAccess": true,
- "firstEvent": null,
- "avatar": {
- "avatarUuid": null,
- "avatarType": "letter_avatar"
- },
- "isMember": false,
- "dateCreated": "2020-08-20T14:36:34.171255Z",
- "isBookmarked": false,
- "id": "5398494",
- "features": [
- "custom-inbound-filters",
- "discard-groups",
- "rate-limits",
- "data-forwarding",
- "similarity-view",
- "issue-alerts-targeting",
- "servicehooks",
- "minidump",
- "similarity-indexing"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad input"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Team not found"
- },
- "409": {
- "description": "A project with the given slug already exists"
- }
- },
- "security": [
- {
- "auth_token": ["project:write"]
- }
- ]
- }
- }
|