Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [Feature] Admin 티켓 수정 API #946

Closed
kimjieun0301 opened this issue Aug 9, 2024 · 0 comments · Fixed by #975
Closed

✨ [Feature] Admin 티켓 수정 API #946

kimjieun0301 opened this issue Aug 9, 2024 · 0 comments · Fixed by #975
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kimjieun0301
Copy link
Contributor

Description

Request

URI

PATCH /agenda/admin/ticket?user=intra_id&ticket=ticket_id

Request body

{
	  "issuedFromKey": string, // AgendaKey UUID or null
														 //발행된 곳(환불때문에씀)
		"usedToKey": string // AgendaKey UUID or null
												//사용처(티켓 사용하는곳)
		"isApproved": bool, // true 발급완료, false 발급대기
		"approvedAt": datetime, // 발급된 시간 or null
		"isUsed": bool, // true 사용된 티켓, false 사용하지 않음
		"usedAt": datetime, // 사용한 시간 or null
}

Response

Status code

  • 204
  • 400
    • BAD_REQUEST
  • 404
    • USER_PROFILE_NOT_FOUND

Response body

{
}

GWT

Feature: 티켓 정보를 수정합니다.

  Scenario: 티켓 정보를 성공적으로 수정합니다.
    Given admin 페이지에 접속되어 있습니다.
    And 수정할 사용자의 intra_id와 ticket_id를 쿼리 파라미터로 전달합니다.
    And 수정할 티켓 정보를 입력합니다.
    When 티켓 정보 수정 요청을 보냅니다.
    Then 요청이 성공적으로 처리되고 204 상태 코드와 빈 응답을 반환합니다.

  Scenario: 잘못된 티켓 정보로 수정 요청을 보냅니다.
    Given admin 페이지에 접속되어 있습니다.
    And 수정할 티켓 정보가 잘못되었습니다.
    When 티켓 정보 수정 요청을 보냅니다.
    Then 요청이 실패하고 400 BAD_REQUEST 상태 코드를 반환합니다.

  Scenario: 존재하지 않는 사용자의 티켓 정보를 수정하려 합니다.
    Given 존재하지 않는 사용자의 intra_id를 전달합니다.
    When 티켓 정보 수정 요청을 보냅니다.
    Then 요청이 실패하고 404 USER_PROFILE_NOT_FOUND 상태 코드를 반환합니다.

Todo

No response

ETC

No response

@kimjieun0301 kimjieun0301 added the enhancement New feature or request label Aug 9, 2024
@kimjieun0301 kimjieun0301 added this to the 7th Sprint 5 milestone Aug 9, 2024
@kimjieun0301 kimjieun0301 self-assigned this Aug 9, 2024
@kimjieun0301 kimjieun0301 linked a pull request Aug 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant