-
Notifications
You must be signed in to change notification settings - Fork 11
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
[STEP 1-3] url-shortener 기능 정의 #65
Open
MyLittleChicken
wants to merge
2
commits into
whatever-mentoring:MyLittleChicken
Choose a base branch
from
MyLittleChicken:docs/func-spec
base: MyLittleChicken
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+70
−0
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# STEP 1-3 | ||
========= | ||
|
||
|
||
url-shortener 기능 명세서 작성 | ||
-------- | ||
|
||
*** | ||
|
||
## 목차🧭 | ||
|
||
- [개요](#개요) | ||
- [배경](#배경) | ||
- [명세](#기능-명세서-) | ||
- [1. url 단축](#1-url-단축) | ||
- [2. url 조회](#2-url-조회) | ||
- [제한사항](#제한사항) | ||
- [참고할 만한 자료](#참고할-만한-자료-) | ||
- [1. 밀러의 매직 넘버7 👈](#1-밀러의-매직-넘버-7-) | ||
*** | ||
|
||
## 개요📜 | ||
|
||
>url-shortener 서비스의 기능을 정의하고 문서화 합니다. | ||
|
||
*** | ||
|
||
## 배경🖼️ | ||
|
||
>버그를 수정하고, 서비스를 개선하려 했지만 기능이 정의된 명세서가 없습니다. | ||
>명확한 기능 정의 없이 기능을 개발하거나 수정하게 되면 서비스는 엉망이 될거라 생각했습니다. | ||
|
||
*** | ||
|
||
# 기능 명세서 📜 | ||
|
||
## 1. url 단축🔹 | ||
- ### 기능 개요 | ||
- 원본 url 을 단축된 url 로 변환하는 기능을 제공합니다. | ||
|
||
- ### 기능 상세 | ||
- 클라이언트로부터 원본 url 을 입력받습니다. | ||
- 입력받은 url 을 변환하여 단축 url(key) 를 생성합니다. | ||
- 생성된 단축 url(key) 을 클라이언트에 반환합니다. | ||
|
||
|
||
## 2. url 조회🔹 | ||
- ### 기능 개요 | ||
- 단축된 url(key) 를 원본 url 로 변환하는 기능을 제공합니다. | ||
|
||
- ### 기능 상세 | ||
- 클라이언트로부터 단축 url 을 입력받습니다. | ||
- 입력받은 단축 url(key) 를 통해 원본 url 을 조회합니다. | ||
- 조회된 원본 url 을 클라이언트에 반환합니다. | ||
|
||
*** | ||
|
||
# 제한사항🚫 | ||
## 1. 중복 제한 | ||
- 단축 url(key) 는 서비스 내에서 `고유`하며, 하나의 url 을 가르킵니다. | ||
|
||
## 2. 길이 제한 | ||
- 단축 url(key) 는 `7자리` 의 길이로 표현합니다. | ||
|
||
## 3. 형태 제한 | ||
- 단축 url(key) 는 `영문 대소문자`와 `숫자`로 구성됩니다. | ||
- `특수문자` 그리고 `공백` 은 사용할 수 없습니다. | ||
|
||
## 참고할 만한 자료 👓 | ||
### 1. [밀러의 매직 넘버 7](https://story.pxd.co.kr/612) 👈 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다음과 같은 내용을 고려했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encode
가 맞는 표현입니다.encode
는 암호화 시 key 가 필요하지 않으며 복호화 를 통해 원래 형태로 되돌릴 수 있습니다. (양방향
)hash
는 마찬가지로 암호화 시 key 가 필요하지 않으며, encode 와 다르게 원래 형태로 되돌릴 수 없습니다. (단방향
)encrypt
는 암호화 시 적절한 key 를 필요로 하며, key 를 이용하여 원래 형태로 되돌릴 수 있습니다. (양방향
)ref
Encryption vs Encoding vs Hashing고유한 key 생성
이라는 단서를 놓고 봤을 때 충분히 의미가 전달될 수 있다고 생각했습니다.피드백 주신 내용 두건 모두 반영하여 수정 진행하겠습니다.
감사합니다.