Cosmos Toggles
  • Introduction
  • Getting Started
    • Software Dependencies
  • Build and Test
    • Projects
    • Environments
    • Flags
  • Contribute
Powered by GitBook
On this page
  • Create project
  • Get projects
  • Get project

Was this helpful?

  1. Build and Test

Projects

Project api reference

Create project

POST https://localhost:44362/projects/

This endpoint allows you to create project.

Headers

Name
Type
Description

Content-Type

string

The Content-Type entity header is used to indicate the media type. Use application/json

Request Body

Name
Type
Description

id

string

Unique identifier project

name

string

Name of project

description

string

Description of project

{
    "id": "bc6c5436-ffff-439e-ae27-9b3b967daa11",
    "name": "Sample Project",
    "description": "Sample project to demonstrate cosmos toggles"
}
[
  {
    "code": 409,
    "description": "Data already exists",
    "content": null,
    "friendlyMessages": null
  }
]
{
  "code": 500,
  "description": "Error message"
}

Get projects

GET https://localhost:44362/projects/

Get all projects

Headers

Name
Type
Description

Content-Type

string

The Content-Type entity header is used to indicate the media type. Use application/json

[
    {
        "id": "bc6c5436-ffff-439e-ae27-9b3b967daa11",
        "name": "Sample Project",
        "description": "Sample project to demonstrate cosmos toggles"
    }
]
[
  {
    "code": 404,
    "description": "Data nout found",
    "content": null,
    "friendlyMessages": null
  }
]

Get project

GET https://localhost:44362/projects/:projectId

Get project by identifier

Query Parameters

Name
Type
Description

projectId

string

Project identifier

Headers

Name
Type
Description

Content-Type

string

The Content-Type entity header is used to indicate the media tye. User application/json

{
	  "id": "bc6c5436-ffff-439e-ae27-9b3b967daa11",
    "name": "Sample Project",
    "description": "Sample project to demonstrate cosmos toggles"
}
[
  {
    "code": 404,
    "description": "Data nout found",
    "content": null,
    "friendlyMessages": null
  }
]
{
  "code": 500,
  "description": "Error message"
}

PreviousBuild and TestNextEnvironments

Last updated 5 years ago

Was this helpful?