|
2080 | 2080 | }, |
2081 | 2081 | "example": { |
2082 | 2082 | "short_name": "fake_company", |
2083 | | - "name": "Fake Company", |
| 2083 | + "long_name": "Fake Company", |
2084 | 2084 | "hard_quota": 1000, |
2085 | 2085 | "authority": [ |
2086 | 2086 | "CNA" |
|
2140 | 2140 | "users": [ |
2141 | 2141 | { |
2142 | 2142 | "UUID": "fe566221-6a2c-4279-8800-4d3795325997", |
2143 | | - "org_UUID": "9e243a41-352b-426a-9dfd-f664b4c71e80", |
2144 | 2143 | "username": "jdoe", |
2145 | 2144 | "name": { |
2146 | 2145 | "first": "John", |
2147 | 2146 | "last": "Doe" |
2148 | 2147 | }, |
2149 | 2148 | "role": "ADMIN", |
2150 | | - "is_active": true, |
2151 | | - "time": { |
2152 | | - "created": "2021-02-12T17:15:37.382Z", |
2153 | | - "modified": "2021-02-12T17:15:37.382Z" |
2154 | | - } |
| 2149 | + "status": "active", |
| 2150 | + "created": "2021-02-12T17:15:37.382Z", |
| 2151 | + "last_updated": "2021-02-12T17:15:37.382Z" |
2155 | 2152 | } |
2156 | 2153 | ] |
2157 | 2154 | } |
|
2542 | 2539 | "application/json": { |
2543 | 2540 | "schema": { |
2544 | 2541 | "$ref": "../schemas/registry-user/update-registry-user-response.json" |
| 2542 | + }, |
| 2543 | + "example": { |
| 2544 | + "message": "jdoe was successfully updated.", |
| 2545 | + "updated": { |
| 2546 | + "UUID": "fe566221-6a2c-4279-8800-4d3795325997", |
| 2547 | + "username": "jdoe", |
| 2548 | + "name": { |
| 2549 | + "first": "John", |
| 2550 | + "last": "Doe" |
| 2551 | + }, |
| 2552 | + "status": "active", |
| 2553 | + "created": "2021-02-12T17:15:37.382Z", |
| 2554 | + "last_updated": "2021-02-12T17:15:37.382Z" |
| 2555 | + } |
2545 | 2556 | } |
2546 | 2557 | } |
2547 | 2558 | } |
|
2698 | 2709 | }, |
2699 | 2710 | "example": { |
2700 | 2711 | "short_name": "fake_company", |
2701 | | - "name": "Fake Company", |
| 2712 | + "long_name": "Fake Company", |
2702 | 2713 | "hard_quota": 1000, |
2703 | 2714 | "authority": [ |
2704 | 2715 | "CNA" |
|
2745 | 2756 | "schema": { |
2746 | 2757 | "$ref": "../schemas/registry-user/create-registry-user-response.json" |
2747 | 2758 | } |
| 2759 | + }, |
| 2760 | + "example": { |
| 2761 | + "message": "jdoe was successfully created.", |
| 2762 | + "created": { |
| 2763 | + "UUID": "fe566221-6a2c-4279-8800-4d3795325997", |
| 2764 | + "username": "jdoe", |
| 2765 | + "name": { |
| 2766 | + "first": "John", |
| 2767 | + "last": "Doe" |
| 2768 | + }, |
| 2769 | + "status": "active", |
| 2770 | + "secret": "12345-abcde-67890", |
| 2771 | + "created": "2021-02-12T17:15:37.382Z", |
| 2772 | + "last_updated": "2021-02-12T17:15:37.382Z" |
| 2773 | + } |
2748 | 2774 | } |
2749 | 2775 | } |
2750 | 2776 | }, |
|
2806 | 2832 | "schema": { |
2807 | 2833 | "$ref": "../schemas/registry-user/create-registry-user-request.json" |
2808 | 2834 | } |
| 2835 | + }, |
| 2836 | + "example": { |
| 2837 | + "username": "jdoe", |
| 2838 | + "name": { |
| 2839 | + "first": "John", |
| 2840 | + "last": "Doe" |
| 2841 | + } |
2809 | 2842 | } |
2810 | 2843 | } |
2811 | 2844 | } |
|
4522 | 4555 | "application/json": { |
4523 | 4556 | "schema": { |
4524 | 4557 | "$ref": "../schemas/conversation/list-conversations-response.json" |
| 4558 | + }, |
| 4559 | + "example": { |
| 4560 | + "totalCount": 1, |
| 4561 | + "itemsPerPage": 10, |
| 4562 | + "pageCount": 1, |
| 4563 | + "currentPage": 1, |
| 4564 | + "prevPage": null, |
| 4565 | + "nextPage": null, |
| 4566 | + "conversations": [ |
| 4567 | + { |
| 4568 | + "UUID": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 4569 | + "target_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 4570 | + "author_id": "fe566221-6a2c-4279-8800-4d3795325997", |
| 4571 | + "author_name": "John Doe", |
| 4572 | + "body": "This is a conversation message.", |
| 4573 | + "posted_at": "2021-02-12T17:15:37.382Z" |
| 4574 | + } |
| 4575 | + ] |
4525 | 4576 | } |
4526 | 4577 | } |
4527 | 4578 | } |
|
4622 | 4673 | "application/json": { |
4623 | 4674 | "schema": { |
4624 | 4675 | "$ref": "../schemas/conversation/list-conversations-response.json" |
| 4676 | + }, |
| 4677 | + "example": { |
| 4678 | + "totalCount": 1, |
| 4679 | + "itemsPerPage": 10, |
| 4680 | + "pageCount": 1, |
| 4681 | + "currentPage": 1, |
| 4682 | + "prevPage": null, |
| 4683 | + "nextPage": null, |
| 4684 | + "conversations": [ |
| 4685 | + { |
| 4686 | + "UUID": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 4687 | + "target_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 4688 | + "author_id": "fe566221-6a2c-4279-8800-4d3795325997", |
| 4689 | + "author_name": "John Doe", |
| 4690 | + "body": "This is a conversation message.", |
| 4691 | + "posted_at": "2021-02-12T17:15:37.382Z" |
| 4692 | + } |
| 4693 | + ] |
4625 | 4694 | } |
4626 | 4695 | } |
4627 | 4696 | } |
|
4712 | 4781 | "application/json": { |
4713 | 4782 | "schema": { |
4714 | 4783 | "$ref": "../schemas/conversation/conversation.json" |
| 4784 | + }, |
| 4785 | + "example": { |
| 4786 | + "UUID": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 4787 | + "target_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 4788 | + "author_id": "fe566221-6a2c-4279-8800-4d3795325997", |
| 4789 | + "author_name": "John Doe", |
| 4790 | + "body": "This is a conversation message.", |
| 4791 | + "posted_at": "2021-02-12T17:15:37.382Z" |
4715 | 4792 | } |
4716 | 4793 | } |
4717 | 4794 | } |
|
4782 | 4859 | "required": [ |
4783 | 4860 | "body" |
4784 | 4861 | ] |
| 4862 | + }, |
| 4863 | + "example": { |
| 4864 | + "body": "This is a conversation message." |
4785 | 4865 | } |
4786 | 4866 | } |
4787 | 4867 | } |
|
4823 | 4903 | "application/json": { |
4824 | 4904 | "schema": { |
4825 | 4905 | "$ref": "../schemas/conversation/conversation.json" |
| 4906 | + }, |
| 4907 | + "example": { |
| 4908 | + "UUID": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 4909 | + "target_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 4910 | + "author_id": "fe566221-6a2c-4279-8800-4d3795325997", |
| 4911 | + "author_name": "John Doe", |
| 4912 | + "body": "This is an updated conversation message.", |
| 4913 | + "visibility": "public", |
| 4914 | + "posted_at": "2021-02-12T17:15:37.382Z", |
| 4915 | + "edited_at": "2021-02-12T17:20:00.000Z" |
4826 | 4916 | } |
4827 | 4917 | } |
4828 | 4918 | } |
|
4898 | 4988 | "description": "The updated visibility of the conversation message" |
4899 | 4989 | } |
4900 | 4990 | } |
| 4991 | + }, |
| 4992 | + "example": { |
| 4993 | + "body": "This is an updated conversation message.", |
| 4994 | + "visibility": "public" |
4901 | 4995 | } |
4902 | 4996 | } |
4903 | 4997 | } |
|
4939 | 5033 | "application/json": { |
4940 | 5034 | "schema": { |
4941 | 5035 | "$ref": "../schemas/review/review.json" |
| 5036 | + }, |
| 5037 | + "example": { |
| 5038 | + "uuid": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 5039 | + "target_object_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 5040 | + "status": "PENDING", |
| 5041 | + "new_review_data": { |
| 5042 | + "name": "New Organization Name" |
| 5043 | + }, |
| 5044 | + "created": "2021-02-12T17:15:37.382Z", |
| 5045 | + "last_updated": "2021-02-12T17:15:37.382Z" |
4942 | 5046 | } |
4943 | 5047 | } |
4944 | 5048 | } |
|
5031 | 5135 | "application/json": { |
5032 | 5136 | "schema": { |
5033 | 5137 | "$ref": "../schemas/review/review.json" |
| 5138 | + }, |
| 5139 | + "example": { |
| 5140 | + "uuid": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 5141 | + "target_object_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 5142 | + "status": "PENDING", |
| 5143 | + "new_review_data": { |
| 5144 | + "name": "New Organization Name" |
| 5145 | + }, |
| 5146 | + "created": "2021-02-12T17:15:37.382Z", |
| 5147 | + "last_updated": "2021-02-12T17:15:37.382Z" |
5034 | 5148 | } |
5035 | 5149 | } |
5036 | 5150 | } |
|
5130 | 5244 | "application/json": { |
5131 | 5245 | "schema": { |
5132 | 5246 | "$ref": "../schemas/review/list-reviews-response.json" |
| 5247 | + }, |
| 5248 | + "example": { |
| 5249 | + "totalCount": 1, |
| 5250 | + "itemsPerPage": 100, |
| 5251 | + "pageCount": 1, |
| 5252 | + "currentPage": 1, |
| 5253 | + "prevPage": null, |
| 5254 | + "nextPage": null, |
| 5255 | + "reviews": [ |
| 5256 | + { |
| 5257 | + "uuid": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 5258 | + "target_object_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 5259 | + "status": "PENDING", |
| 5260 | + "new_review_data": { |
| 5261 | + "name": "New Organization Name" |
| 5262 | + }, |
| 5263 | + "created": "2021-02-12T17:15:37.382Z", |
| 5264 | + "last_updated": "2021-02-12T17:15:37.382Z" |
| 5265 | + } |
| 5266 | + ] |
5133 | 5267 | } |
5134 | 5268 | } |
5135 | 5269 | } |
|
5330 | 5464 | "application/json": { |
5331 | 5465 | "schema": { |
5332 | 5466 | "$ref": "../schemas/review/review.json" |
| 5467 | + }, |
| 5468 | + "example": { |
| 5469 | + "uuid": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 5470 | + "target_object_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 5471 | + "status": "PENDING", |
| 5472 | + "new_review_data": { |
| 5473 | + "name": "New Organization Name" |
| 5474 | + }, |
| 5475 | + "created": "2021-02-12T17:15:37.382Z", |
| 5476 | + "last_updated": "2021-02-12T17:15:37.382Z" |
5333 | 5477 | } |
5334 | 5478 | } |
5335 | 5479 | } |
|
5392 | 5536 | "schema": { |
5393 | 5537 | "type": "object", |
5394 | 5538 | "description": "The updated review data" |
| 5539 | + }, |
| 5540 | + "example": { |
| 5541 | + "new_review_data": { |
| 5542 | + "name": "New Organization Name" |
| 5543 | + } |
5395 | 5544 | } |
5396 | 5545 | } |
5397 | 5546 | } |
|
5433 | 5582 | "application/json": { |
5434 | 5583 | "schema": { |
5435 | 5584 | "$ref": "../schemas/review/review.json" |
| 5585 | + }, |
| 5586 | + "example": { |
| 5587 | + "uuid": "c8a41738-f9d6-4447-9755-9ab0101b7a2d", |
| 5588 | + "target_object_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 5589 | + "status": "PENDING", |
| 5590 | + "new_review_data": { |
| 5591 | + "name": "New Organization Name" |
| 5592 | + }, |
| 5593 | + "created": "2021-02-12T17:15:37.382Z", |
| 5594 | + "last_updated": "2021-02-12T17:15:37.382Z" |
5436 | 5595 | } |
5437 | 5596 | } |
5438 | 5597 | } |
|
0 commit comments