ditrit / gandalf

Gandalf (Gandalf is A Natural Devops Application Life-cycle Framework), a tool to allow progressive DevOps adoption.
Mozilla Public License 2.0
7 stars 0 forks source link

Add `GitProvider` endpoint on `domain` #223

Closed Zorin95670 closed 2 years ago

Zorin95670 commented 2 years ago

Steps:

table GitProvider

Field Type Constraints
ID Serial auto-increment not null unique
url Text not null
token Text not null
organization Text
insert_date timestamp not null
update_date timestamp not null
Endpoint Create new GitProvider
URL /domain/[DOMAIN_ID]/gitprovider
Method POST
Body type JSON
Body GitProvider object without id
Body request { "url": string, "token": string, "organization": string}
success status 201
Sucess Response generated Gitprovider
Body response { "ID": integer, "url": string, "token": string, "organization": string}
Authentication check Yes

Errors list:

Endpoint Get GitProvider
URL /domain/[DOMAIN_ID]/gitprovider/[GITPROVIDER_ID]
Method GET
success status 200
Sucess Response Gitprovider
Body response { "ID": integer, "url": string, "token": string, "organization": string}
Authentication check Yes

Errors list:

Endpoint Update GitProvider
URL /domain/[DOMAIN_ID]/gitprovider/[GITPROVIDER_ID]
Method PUT
Body type JSON
Body GitProvider object without id
Body request { "url": string, "token": string, "organization": string}
success status 204
Authentication check Yes

Errors list:

Endpoint Delete GitProvider
URL /domain/[DOMAIN_ID]/gitprovider/[GITPROVIDER_ID]
Method DELETE
success status 204
Authentication check Yes

Errors list: