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

Add snapshots endpoint #86

Merged
merged 1 commit into from Nov 30, 2017
Merged

Conversation

zhouzhuojie
Copy link
Collaborator

Adding snapshots endpoint. This is to prepare the audit trail for "who edit what" in UI

@zhouzhuojie
Copy link
Collaborator Author

tested with curl

curl --request GET \
  --url http://localhost:18000/api/v1/flags/2/snapshots
[
	{
		"flag": {
			"dataRecordsEnabled": false,
			"description": "something new",
			"enabled": false,
			"id": 2,
			"segments": [
				{
					"constraints": [],
					"description": "123",
					"distributions": [],
					"id": 4,
					"rank": 0,
					"rolloutPercent": 50
				}
			],
			"variants": []
		},
		"id": 31
	},
	{
		"flag": {
			"dataRecordsEnabled": false,
			"description": "something new",
			"enabled": false,
			"id": 2,
			"segments": [],
			"variants": []
		},
		"id": 30
	},
	{
		"flag": {
			"dataRecordsEnabled": false,
			"description": "something new",
			"enabled": false,
			"id": 2,
			"segments": [
				{
					"constraints": [],
					"description": "123",
					"distributions": [],
					"id": 3,
					"rank": 0,
					"rolloutPercent": 50
				}
			],
			"variants": []
		},
		"id": 29
	},
	{
		"flag": {
			"dataRecordsEnabled": false,
			"description": "something new",
			"enabled": false,
			"id": 2,
			"segments": [],
			"variants": []
		},
		"id": 28
	}
]

@zhouzhuojie zhouzhuojie merged commit 711f661 into master Nov 30, 2017
@zhouzhuojie zhouzhuojie deleted the zz/add-get-snapshots-endpoint branch November 30, 2017 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant