From 80c19943367ed41701dae49a92f363e20198c572 Mon Sep 17 00:00:00 2001 From: martintomas Date: Tue, 31 Dec 2024 17:20:14 +0100 Subject: [PATCH] feat: Adding investments to member serializer --- .../serializers/api/v1/member_serializer.rb | 1 + .../v1/get-member-include-relationships.json | 21 +- .../api/v1/get-member-sparse-fieldset.json | 2 +- .../fixtures/snapshots/api/v1/get-member.json | 20 +- .../snapshots/api/v1/update-member.json | 15 +- .../api/v1/members/investments_spec.rb | 1 - backend/spec/requests/api/v1/members_spec.rb | 1 + backend/spec/swagger_helper.rb | 3 +- backend/swagger/v1/swagger.yaml | 1873 +++++++++++++++-- 9 files changed, 1765 insertions(+), 172 deletions(-) diff --git a/backend/app/serializers/api/v1/member_serializer.rb b/backend/app/serializers/api/v1/member_serializer.rb index ab2a403..ef82dbf 100644 --- a/backend/app/serializers/api/v1/member_serializer.rb +++ b/backend/app/serializers/api/v1/member_serializer.rb @@ -6,6 +6,7 @@ class MemberSerializer < BaseSerializer belongs_to_restricted :funder has_many_restricted :projects + has_many_restricted :investments end end end diff --git a/backend/spec/fixtures/snapshots/api/v1/get-member-include-relationships.json b/backend/spec/fixtures/snapshots/api/v1/get-member-include-relationships.json index 2051295..b13aef9 100644 --- a/backend/spec/fixtures/snapshots/api/v1/get-member-include-relationships.json +++ b/backend/spec/fixtures/snapshots/api/v1/get-member-include-relationships.json @@ -1,6 +1,6 @@ { "data": { - "id": "f5f720f9-2896-4583-b63a-d61bb98e5e96", + "id": "56509b92-d99e-407a-a21c-5d7f15f45864", "type": "member", "attributes": { "first_name": "Dawna" @@ -8,7 +8,7 @@ "relationships": { "funder": { "data": { - "id": "8ff19280-2af6-4a2c-be00-ba5fbea69263", + "id": "23968c74-570b-47ab-944a-9dde5d93b425", "type": "funder" } } @@ -16,7 +16,7 @@ }, "included": [ { - "id": "8ff19280-2af6-4a2c-be00-ba5fbea69263", + "id": "23968c74-570b-47ab-944a-9dde5d93b425", "type": "funder", "attributes": { "name": "Otha Kemmer", @@ -58,21 +58,21 @@ "demographics_other": "Enim repellat pariatur est.", "contact_email": "dawna.block@example.org", "logo": { - "small": "http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrWTJNMVpUZzFOaTFtTm1NNExUUTROMlV0T1RrNU5TMWtaVEl4WkdKaE0ySTJPV0VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6ebae4c6f2260e3a7353702f52289ee02cc113ad/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg", - "medium": "http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrWTJNMVpUZzFOaTFtTm1NNExUUTROMlV0T1RrNU5TMWtaVEl4WkdKaE0ySTJPV0VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6ebae4c6f2260e3a7353702f52289ee02cc113ad/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg", - "original": "http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrWTJNMVpUZzFOaTFtTm1NNExUUTROMlV0T1RrNU5TMWtaVEl4WkdKaE0ySTJPV0VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6ebae4c6f2260e3a7353702f52289ee02cc113ad/picture.jpg" + "small": "http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TVdRd1l6RmhNQzFpWkdFd0xUUXhaV0l0T1RCbU1DMDNZV1ZoTURreVl6ZzNaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--bdd22797fd75130b557ebffef7ccc86c50d065a2/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg", + "medium": "http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TVdRd1l6RmhNQzFpWkdFd0xUUXhaV0l0T1RCbU1DMDNZV1ZoTURreVl6ZzNaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--bdd22797fd75130b557ebffef7ccc86c50d065a2/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg", + "original": "http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TVdRd1l6RmhNQzFpWkdFd0xUUXhaV0l0T1RCbU1DMDNZV1ZoTURreVl6ZzNaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--bdd22797fd75130b557ebffef7ccc86c50d065a2/picture.jpg" } }, "relationships": { "primary_office_state": { "data": { - "id": "8382f3a9-e384-4716-8675-a428592c41f8", + "id": "24a6d4ee-664f-4ff7-9d7e-a17bea71fb9c", "type": "subgeographic" } }, "primary_office_country": { "data": { - "id": "7c156964-9f67-4333-8160-3b9728840bd5", + "id": "5e5760e1-60d2-45cf-bfff-dff3c1bc60aa", "type": "subgeographic" } }, @@ -88,7 +88,10 @@ }, "projects": { "data": [ - + { + "id": "93d5f6a8-0267-42cb-97b5-f0fa19d5dec8", + "type": "project" + } ] } } diff --git a/backend/spec/fixtures/snapshots/api/v1/get-member-sparse-fieldset.json b/backend/spec/fixtures/snapshots/api/v1/get-member-sparse-fieldset.json index 161e5d1..6baaa50 100644 --- a/backend/spec/fixtures/snapshots/api/v1/get-member-sparse-fieldset.json +++ b/backend/spec/fixtures/snapshots/api/v1/get-member-sparse-fieldset.json @@ -1,6 +1,6 @@ { "data": { - "id": "c0843a5d-8672-4a7f-9692-f92dbc9fc5c6", + "id": "80b40ae3-bb46-434e-802f-2a5c9e47b14c", "type": "member", "attributes": { "first_name": "Dawna", diff --git a/backend/spec/fixtures/snapshots/api/v1/get-member.json b/backend/spec/fixtures/snapshots/api/v1/get-member.json index dc864af..aad2fb4 100644 --- a/backend/spec/fixtures/snapshots/api/v1/get-member.json +++ b/backend/spec/fixtures/snapshots/api/v1/get-member.json @@ -1,29 +1,37 @@ { "data": { - "id": "eb537b37-145c-450b-a104-ecf6408c6c74", + "id": "474d2da4-5f0b-4aab-ad7c-3ef61b8579aa", "type": "member", "attributes": { - "id": "eb537b37-145c-450b-a104-ecf6408c6c74", + "id": "474d2da4-5f0b-4aab-ad7c-3ef61b8579aa", "email": "admin1@example.com", "first_name": "Dawna", "last_name": "Block", - "created_at": "2024-12-31T13:58:30.926Z", - "updated_at": "2024-12-31T13:58:30.926Z" + "created_at": "2024-12-31T16:18:24.048Z", + "updated_at": "2024-12-31T16:18:24.048Z" }, "relationships": { "funder": { "data": { - "id": "867ec08e-8b20-4929-b36d-09afaca5629c", + "id": "e82b1248-4b0c-4332-8e71-453bb211e145", "type": "funder" } }, "projects": { "data": [ { - "id": "74eab1c7-8b40-46ac-a056-010f457e285e", + "id": "bf35d0a0-a4dd-4062-8fac-9951e71a6dd2", "type": "project" } ] + }, + "investments": { + "data": [ + { + "id": "2f777635-0c71-4ec7-9f70-a93404562a7e", + "type": "investment" + } + ] } } } diff --git a/backend/spec/fixtures/snapshots/api/v1/update-member.json b/backend/spec/fixtures/snapshots/api/v1/update-member.json index 6820b42..c317597 100644 --- a/backend/spec/fixtures/snapshots/api/v1/update-member.json +++ b/backend/spec/fixtures/snapshots/api/v1/update-member.json @@ -1,25 +1,30 @@ { "data": { - "id": "74892a95-b875-4873-8fc3-c6dad4f57308", + "id": "5a7c2bdc-952a-453f-baa2-2b5543f4931f", "type": "member", "attributes": { - "id": "74892a95-b875-4873-8fc3-c6dad4f57308", + "id": "5a7c2bdc-952a-453f-baa2-2b5543f4931f", "email": "new@email.test", "first_name": "New", "last_name": "Name", - "created_at": "2024-12-31T13:58:31.203Z", - "updated_at": "2024-12-31T13:58:31.207Z" + "created_at": "2024-12-31T16:18:23.885Z", + "updated_at": "2024-12-31T16:18:23.890Z" }, "relationships": { "funder": { "data": { - "id": "61d024ef-7570-49cb-bb32-26ab42f07b21", + "id": "4d27782d-d4d3-4ee7-8a4f-125ed236e150", "type": "funder" } }, "projects": { "data": [ + ] + }, + "investments": { + "data": [ + ] } } diff --git a/backend/spec/requests/api/v1/members/investments_spec.rb b/backend/spec/requests/api/v1/members/investments_spec.rb index 73eba9d..96afb81 100644 --- a/backend/spec/requests/api/v1/members/investments_spec.rb +++ b/backend/spec/requests/api/v1/members/investments_spec.rb @@ -10,7 +10,6 @@ include_context "with authorization" - parameter name: "page[number]", in: :query, type: :integer, description: "Page number. Default: 1", required: false parameter name: "page[size]", in: :query, type: :integer, description: "Per page items. Default: 10", required: false parameter name: :disable_pagination, in: :query, type: :boolean, description: "Turn off pagination", required: false diff --git a/backend/spec/requests/api/v1/members_spec.rb b/backend/spec/requests/api/v1/members_spec.rb index 0b08ce6..8b3ef3c 100644 --- a/backend/spec/requests/api/v1/members_spec.rb +++ b/backend/spec/requests/api/v1/members_spec.rb @@ -19,6 +19,7 @@ let(:member) { create :member } let!(:project) { create :project, member: member } + let!(:investment) { create :investment, funder: member.funder } let(:Authorization) { "Bearer #{JWTAuth.encode(member)}" } run_test! diff --git a/backend/spec/swagger_helper.rb b/backend/spec/swagger_helper.rb index 7596b35..0de5f95 100644 --- a/backend/spec/swagger_helper.rb +++ b/backend/spec/swagger_helper.rb @@ -164,7 +164,8 @@ type: :object, properties: { funder: {"$ref" => "#/components/schemas/response_relation"}, - projects: {"$ref" => "#/components/schemas/response_relations"} + projects: {"$ref" => "#/components/schemas/response_relations"}, + investments: {"$ref" => "#/components/schemas/response_relations"} } } }, diff --git a/backend/swagger/v1/swagger.yaml b/backend/swagger/v1/swagger.yaml index a0969ae..e3a0bb8 100644 --- a/backend/swagger/v1/swagger.yaml +++ b/backend/swagger/v1/swagger.yaml @@ -734,7 +734,7 @@ paths: application/json: example: data: - - id: 76724697-c537-450d-80f4-95118bd3a474 + - id: ee78d27d-dcc9-417b-92f3-a090be44d03e type: funder attributes: name: Elbert Denesik @@ -772,31 +772,31 @@ paths: demographics_other: Dolores fugiat nesciunt accusantium. contact_email: lauren@ruecker.io logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt4TVdSbE1UazFOeTFrWWpOa0xUUmtNek10T0RFNE55MHhaV1ppT1RBM1lUWmlOVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--fd60548c26bce78fce9db188f9f24bae0aa3d766/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt4TVdSbE1UazFOeTFrWWpOa0xUUmtNek10T0RFNE55MHhaV1ppT1RBM1lUWmlOVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--fd60548c26bce78fce9db188f9f24bae0aa3d766/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt4TVdSbE1UazFOeTFrWWpOa0xUUmtNek10T0RFNE55MHhaV1ppT1RBM1lUWmlOVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--fd60548c26bce78fce9db188f9f24bae0aa3d766/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxsTm1GbFlXWTNaaTB6WldJM0xUUmpZV1l0WWpjNE9TMDJPV1l4WWpNM05XSmpNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--ee0a8b799160ba91a1ab4c6dfdb0d717e78b31ff/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxsTm1GbFlXWTNaaTB6WldJM0xUUmpZV1l0WWpjNE9TMDJPV1l4WWpNM05XSmpNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--ee0a8b799160ba91a1ab4c6dfdb0d717e78b31ff/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxsTm1GbFlXWTNaaTB6WldJM0xUUmpZV1l0WWpjNE9TMDJPV1l4WWpNM05XSmpNemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--ee0a8b799160ba91a1ab4c6dfdb0d717e78b31ff/picture.jpg relationships: primary_office_state: data: - id: fa801a4c-5900-4c22-b312-a1e4e4add7a1 + id: 3e720088-ff48-49b2-ad56-90a108d256be type: subgeographic primary_office_country: data: - id: 60c86e98-73b1-47e1-aa1c-322fdd33e2f7 + id: f0d30522-75e4-4558-b551-9f24d2a85568 type: subgeographic subgeographics: data: - - id: 1db81a44-36b0-4139-a7d7-d259c41d33d9 + - id: 0de1ea22-3225-47b0-80b7-2927fce9c4c4 type: subgeographic subgeographic_ancestors: data: - - id: 1db81a44-36b0-4139-a7d7-d259c41d33d9 + - id: 0de1ea22-3225-47b0-80b7-2927fce9c4c4 type: subgeographic - - id: c6bbe935-6a2c-456e-bd0c-0d4079ecfe32 + - id: 647abde9-489a-472b-bc8f-004f47573865 type: subgeographic projects: data: [] - - id: e1a5bd6c-fae6-4260-81be-ed324a756925 + - id: 4dfa2ff9-0732-49fb-a866-3d3ca502ea8d type: funder attributes: name: Msgr. Genaro Cronin @@ -834,17 +834,17 @@ paths: demographics_other: Placeat commodi libero et. contact_email: desmond_herzog@example.org logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWszWkRNM05EWTFPUzFrWmpaakxUUTFZVE10WWpBM09TMDFNakE1T1dJeU4yUTFaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--26b332a34a4823d1e3aaa878825b489bd2e51571/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWszWkRNM05EWTFPUzFrWmpaakxUUTFZVE10WWpBM09TMDFNakE1T1dJeU4yUTFaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--26b332a34a4823d1e3aaa878825b489bd2e51571/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWszWkRNM05EWTFPUzFrWmpaakxUUTFZVE10WWpBM09TMDFNakE1T1dJeU4yUTFaR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--26b332a34a4823d1e3aaa878825b489bd2e51571/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWWpoa1pqa3dPUzA0TW1GbUxUUm1Nemt0WVRjMk1TMWtNbUV6WkRNMk5tRTNaVFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--12bf2156774578121d6f5c681bc290243bb14965/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWWpoa1pqa3dPUzA0TW1GbUxUUm1Nemt0WVRjMk1TMWtNbUV6WkRNMk5tRTNaVFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--12bf2156774578121d6f5c681bc290243bb14965/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWWpoa1pqa3dPUzA0TW1GbUxUUm1Nemt0WVRjMk1TMWtNbUV6WkRNMk5tRTNaVFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--12bf2156774578121d6f5c681bc290243bb14965/picture.jpg relationships: primary_office_state: data: - id: c5f1b467-c9eb-4a20-9b50-b66310353472 + id: c0ee46ae-f1f5-4e4b-b0b1-8cde147b7092 type: subgeographic primary_office_country: data: - id: e6c8da4f-7419-4234-a1a1-52e613e74e08 + id: 157c2a6b-138a-445a-8a5a-60e671e2fab6 type: subgeographic subgeographics: data: [] @@ -852,7 +852,7 @@ paths: data: [] projects: data: [] - - id: aa1ee480-7ad6-4fcb-8c2a-50d615e56e8c + - id: 494115ff-0134-413f-ac3c-21dd23d41b26 type: funder attributes: name: Otha Kemmer @@ -890,17 +890,17 @@ paths: demographics_other: Enim repellat pariatur est. contact_email: dawna.block@example.org logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TUdGbE9EY3lOUzFpWXpkbUxUUmlaRFF0T1RVMllTMWxOVE5sTkRJM05UaGpPVGtHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--688ac8bd2692e419b3d5e4a4e803d067c4a64d60/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TUdGbE9EY3lOUzFpWXpkbUxUUmlaRFF0T1RVMllTMWxOVE5sTkRJM05UaGpPVGtHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--688ac8bd2692e419b3d5e4a4e803d067c4a64d60/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3TUdGbE9EY3lOUzFpWXpkbUxUUmlaRFF0T1RVMllTMWxOVE5sTkRJM05UaGpPVGtHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--688ac8bd2692e419b3d5e4a4e803d067c4a64d60/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkdRME1UbGlNUzFrWmpFMUxUUTBNVEV0WWpNeU1DMWlNMlV5T1dNMFpUWTBNemdHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--4f42349d314a19c8630439c145747ab5ffa821ea/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkdRME1UbGlNUzFrWmpFMUxUUTBNVEV0WWpNeU1DMWlNMlV5T1dNMFpUWTBNemdHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--4f42349d314a19c8630439c145747ab5ffa821ea/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkdRME1UbGlNUzFrWmpFMUxUUTBNVEV0WWpNeU1DMWlNMlV5T1dNMFpUWTBNemdHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--4f42349d314a19c8630439c145747ab5ffa821ea/picture.jpg relationships: primary_office_state: data: - id: f55a7b51-821f-496b-a93f-f9a4f4b751bd + id: 0e66617c-e86e-4ed0-a84f-70da984dd2a7 type: subgeographic primary_office_country: data: - id: 403662fd-1d3d-4e51-88c7-98a2e6883327 + id: 11a559df-72ff-4177-8642-b4c36dd2cd55 type: subgeographic subgeographics: data: [] @@ -908,7 +908,7 @@ paths: data: [] projects: data: [] - - id: 3563139c-56ed-4334-8a54-6afa5e2df182 + - id: 68fa2b49-a1b9-4f3a-a6ed-7ead1e533f1a type: funder attributes: name: Raymon Wisoky @@ -946,17 +946,17 @@ paths: demographics_other: Et quaerat omnis veniam. contact_email: jules_keeling@grimes-stokes.co logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxT0ROallqYzNOaTFtWXpjNUxUUmxZekl0WVRRd1lpMDRaVFV6TnpJNVpEUXhOemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--24a1fb53cdf1710183f94412f601ecdc81f3dd6b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxT0ROallqYzNOaTFtWXpjNUxUUmxZekl0WVRRd1lpMDRaVFV6TnpJNVpEUXhOemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--24a1fb53cdf1710183f94412f601ecdc81f3dd6b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxT0ROallqYzNOaTFtWXpjNUxUUmxZekl0WVRRd1lpMDRaVFV6TnpJNVpEUXhOemNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--24a1fb53cdf1710183f94412f601ecdc81f3dd6b/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TmprNVl6aGtOaTA1WkRGaUxUUXlNMll0T1dFd09TMHpaamhtWVRZeVpqaGtORFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--119cc5fbf42b37789b423bcd291ba69d09545d5a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TmprNVl6aGtOaTA1WkRGaUxUUXlNMll0T1dFd09TMHpaamhtWVRZeVpqaGtORFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--119cc5fbf42b37789b423bcd291ba69d09545d5a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TmprNVl6aGtOaTA1WkRGaUxUUXlNMll0T1dFd09TMHpaamhtWVRZeVpqaGtORFFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--119cc5fbf42b37789b423bcd291ba69d09545d5a/picture.jpg relationships: primary_office_state: data: - id: 58e497b6-4c16-44f7-9deb-380dbbb86a38 + id: '07889ada-19e4-440b-bd8c-3edda5e3ca28' type: subgeographic primary_office_country: data: - id: df545178-ea7e-4c0f-8f75-045f652d0e24 + id: 7a3444f5-04ec-4748-b805-39a82f962ad3 type: subgeographic subgeographics: data: [] @@ -1028,7 +1028,7 @@ paths: application/json: example: data: - id: 89b3865f-ae3d-43e9-9bcd-74c71840cd2c + id: 7c4e601c-084d-4fa7-8580-9d7dc667faed type: funder attributes: name: Otha Kemmer @@ -1067,27 +1067,27 @@ paths: demographics_other: Enim repellat pariatur est. contact_email: dawna.block@example.org logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TnpSaFptWXlOQzB3TURjMkxUUmlNVEV0WW1aaU5DMW1NV1kwTmpKaE5qaGpZelFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--a5a6f2b66b9973bf8bc144b742b15b2786f1e073/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TnpSaFptWXlOQzB3TURjMkxUUmlNVEV0WW1aaU5DMW1NV1kwTmpKaE5qaGpZelFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--a5a6f2b66b9973bf8bc144b742b15b2786f1e073/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TnpSaFptWXlOQzB3TURjMkxUUmlNVEV0WW1aaU5DMW1NV1kwTmpKaE5qaGpZelFHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--a5a6f2b66b9973bf8bc144b742b15b2786f1e073/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWswTm1SaU1UZzJOQzFsTkdVekxUUmtZbUV0WVRFMFpDMDNaamt3TURCbVptSm1ZV1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--cbc6e240029054ee3e75ceae5d73f9f73a78b244/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWswTm1SaU1UZzJOQzFsTkdVekxUUmtZbUV0WVRFMFpDMDNaamt3TURCbVptSm1ZV1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--cbc6e240029054ee3e75ceae5d73f9f73a78b244/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWswTm1SaU1UZzJOQzFsTkdVekxUUmtZbUV0WVRFMFpDMDNaamt3TURCbVptSm1ZV1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--cbc6e240029054ee3e75ceae5d73f9f73a78b244/picture.jpg relationships: primary_office_state: data: - id: 5c7eef99-dc52-430e-88f5-cb516f50a7d6 + id: 7b71776e-9dc7-4e90-a8be-34044b0be64f type: subgeographic primary_office_country: data: - id: 77cd3cc1-71a2-4495-b656-ee75be5f6005 + id: e55abade-3521-4bf1-9d6b-5d64eca92ee6 type: subgeographic subgeographics: data: - - id: ecbc1244-c507-412e-9afc-dcd3f8f0ddd6 + - id: 04646d24-d77e-408c-a8ca-1b676c3a8a15 type: subgeographic subgeographic_ancestors: data: - - id: ecbc1244-c507-412e-9afc-dcd3f8f0ddd6 + - id: 04646d24-d77e-408c-a8ca-1b676c3a8a15 type: subgeographic - - id: 2df1e53e-f14b-48f2-8bca-f759ba6d01f0 + - id: 23b8d0d6-4b00-4226-9cb4-ac64cf0de542 type: subgeographic projects: data: [] @@ -1201,9 +1201,1452 @@ paths: type: array items: "$ref": "#/components/schemas/enum" - "/api/v1/members/{id}": + "/api/v1/investment_privacies": + get: + summary: Returns list of the investment_privacies + tags: + - Enums + responses: + '200': + description: success + content: + application/json: + example: + data: + - id: visible_only_to_staff + type: investment_privacy + attributes: + name: No, I don't want any of this information included on the + platform, or available to FORA members. It can only be available + to FORA staff privately. + - id: visible_only_to_members + type: investment_privacy + attributes: + name: No, I don't want any of this information included on the + platform. It can only be available to FORA members privately. + - id: all + type: investment_privacy + attributes: + name: Yes, ALL of the information can be shared on the platform, + including non-aggregated funding amount + - id: aggregate_amount_funded + type: investment_privacy + attributes: + name: Yes, general information can be shared, but please ensure + the funding amount is only included as aggregated data + - id: amount_funded_visible_only_to_members + type: investment_privacy + attributes: + name: Yes, general information can be shared, but please keep + the funding amount private to FORA members only and do not even + include in the aggregated data + - id: amount_funded_visible_only_to_staff + type: investment_privacy + attributes: + name: Yes, general information can be shared, but please keep + the funding amount private to FORA staff only and do not even + include in the aggregated data + schema: + type: object + properties: + data: + type: array + items: + "$ref": "#/components/schemas/enum" + "/api/v1/members/funder": + get: + summary: Returns funder of current member + tags: + - Funders + security: + - Bearer: {} + parameters: + - name: fields[funder] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 58413c64-a8f6-4b2d-a9a8-ece7cac7423b + type: funder + attributes: + name: Otha Kemmer + description: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + primary_office_city: South Moises + website: http://kutch-spencer.com/moises + date_joined_fora: '2021-11-27T00:00:00.000Z' + funder_type: funder_collaborative_or_network + funder_type_other: Enim repellat pariatur est. + capital_acceptances: + - other + - investments_accepted + capital_acceptances_other: Enim repellat pariatur est. + leadership_demographics: + - hispanic_or_latinx + - other + leadership_demographics_other: Enim repellat pariatur est. + application_status: invitation_only + funder_legal_status: other + funder_legal_status_other: Enim repellat pariatur est. + networks: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + capital_types: + - re_grants + - pris + capital_types_other: Enim repellat pariatur est. + spend_down_strategy: true + areas: + - land_asset_financing + - capacity_building + areas_other: Enim repellat pariatur est. + demographics: + - hispanic_or_latinx + - other + demographics_other: Enim repellat pariatur est. + contact_email: dawna.block@example.org + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WmpFMU5EQXhaaTAwWm1RNUxUUmhPVGd0T1dFek5TMHlNakF3TkdGaE9UTXlZVGNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6bec2645b7f497d31b1c78239cda34e33e8a1fc8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WmpFMU5EQXhaaTAwWm1RNUxUUmhPVGd0T1dFek5TMHlNakF3TkdGaE9UTXlZVGNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6bec2645b7f497d31b1c78239cda34e33e8a1fc8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWt3WmpFMU5EQXhaaTAwWm1RNUxUUmhPVGd0T1dFek5TMHlNakF3TkdGaE9UTXlZVGNHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6bec2645b7f497d31b1c78239cda34e33e8a1fc8/picture.jpg + relationships: + primary_office_state: + data: + id: a3b99948-4e4d-42ad-a86f-0cd0ec3a75f6 + type: subgeographic + primary_office_country: + data: + id: 2a5e72dc-d49b-4db9-a9ca-7ae9bee9f306 + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + projects: + data: [] + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/funder" + put: + summary: Updates funder of current member + tags: + - Funders + security: + - Bearer: {} + parameters: [] + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 90dabe0a-202d-4ee6-b802-2e87e1420a7c + type: funder + attributes: + name: New name + description: Placeat commodi libero. Quo recusandae repellat. + Sunt commodi tempore. Voluptatem et corrupti. + primary_office_city: Lake Genarostad + website: http://bartoletti.com/jeremiah_cronin + date_joined_fora: '2022-04-07T00:00:00.000Z' + funder_type: loan_fund + funder_type_other: Placeat commodi libero et. + capital_acceptances: + - advises_and_manages_capital + - does_not_provide_funding + capital_acceptances_other: Placeat commodi libero et. + leadership_demographics: + - no_specific_focus + - other + leadership_demographics_other: Placeat commodi libero et. + application_status: does_not_provide_funding + funder_legal_status: for_profit + funder_legal_status_other: Placeat commodi libero et. + networks: Placeat commodi libero. Quo recusandae repellat. Sunt + commodi tempore. Voluptatem et corrupti. + capital_types: + - other + - guarantees + capital_types_other: Placeat commodi libero et. + spend_down_strategy: true + areas: + - fermentation + - soil_measurement_and_technology + areas_other: Placeat commodi libero et. + demographics: + - no_specific_focus + - other + demographics_other: Placeat commodi libero et. + contact_email: desmond_herzog@example.org + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TWpBeE56aGxZUzFqTVRBMUxUUXdNamN0WWpBd1lpMDFOV015TnpBd1pEVm1NbVlHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8dc0b82e4a2d4d172da9805df4514dafb5e585c6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TWpBeE56aGxZUzFqTVRBMUxUUXdNamN0WWpBd1lpMDFOV015TnpBd1pEVm1NbVlHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8dc0b82e4a2d4d172da9805df4514dafb5e585c6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1TWpBeE56aGxZUzFqTVRBMUxUUXdNamN0WWpBd1lpMDFOV015TnpBd1pEVm1NbVlHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8dc0b82e4a2d4d172da9805df4514dafb5e585c6/picture.jpg + relationships: + primary_office_state: + data: + id: b3d15a0f-c2ad-4e7c-9e68-a5dbefcb06e2 + type: subgeographic + primary_office_country: + data: + id: 0baddd00-3c18-410b-ace6-377c967f2655 + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + projects: + data: [] + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/funder" + '422': + description: Invalid attributes + content: + application/json: + schema: + "$ref": "#/components/schemas/errors" + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + name: + type: string + description: + type: string + logo: + type: binary + primary_office_address: + type: string + primary_office_city: + type: string + primary_office_state_id: + type: integer + primary_office_country_id: + type: integer + primary_contact_first_name: + type: string + primary_contact_last_name: + type: string + primary_contact_email: + type: string + show_primary_email: + type: boolean + primary_contact_phone: + type: string + primary_contact_location: + type: string + primary_contact_role: + type: string + secondary_email_which_can_be_shared: + type: string + website: + type: string + date_joined_fora: + type: string + funder_type: + type: string + funder_type_other: + type: string + capital_acceptances_other: + type: string + leadership_demographics_other: + type: string + number_staff_employees: + type: integer + application_status: + type: string + funder_legal_status: + type: string + funder_legal_status_other: + type: string + new_to_regenerative_ag: + type: boolean + networks: + type: string + capital_types_other: + type: string + spend_down_strategy: + type: string + areas_other: + type: string + demographics_other: + type: string + capital_acceptances: + type: array + items: + type: string + leadership_demographics: + type: array + items: + type: string + capital_types: + type: array + items: + type: string + areas: + type: array + items: + type: string + demographics: + type: array + items: + type: string + required: + - name + - description + - primary_office_city + - primary_contact_first_name + - primary_contact_last_name" + - "\n" + - "\"primary_contact_email" + - date_joined_fora + - number_staff_employees + - funder_type + - capital_acceptances" + - "\n" + - "\"leadership_demographics" + - application_status + - funder_legal_status + - capital_types + - areas + - demographics + - "\"" + - "\n" + - "\"primary_office_country_id" + "/api/v1/members/investments": + get: + summary: List all investments for current member + tags: + - Investments + security: + - Bearer: [] + parameters: + - name: page[number] + in: query + description: 'Page number. Default: 1' + required: false + schema: + type: integer + - name: page[size] + in: query + description: 'Per page items. Default: 10' + required: false + schema: + type: integer + - name: disable_pagination + in: query + description: Turn off pagination + required: false + schema: + type: boolean + - name: fields[investment] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + - id: 52c1d7f3-a34b-4ce8-9f11-519fc014c307 + type: investment + attributes: + amount: '68.96' + year_invested: 2023 + initial_funded_year: 2022 + funding_type: sponsorship + funding_type_other: Enim repellat pariatur est. + areas: + - land_asset_financing + - capacity_building + areas_other: Enim repellat pariatur est. + grant_duration: multi_year + number_of_grant_years: 4 + demographics: + - hispanic_or_latinx + - other + demographics_other: Enim repellat pariatur est. + capital_type: re_grants + capital_type_other: Enim repellat pariatur est. + submitting_organization_contact_name: Otha Kemmer + privacy: visible_only_to_staff + relationships: + project: + data: + id: f2eb485b-fa1c-4fdb-bce7-8a00e37feaec + type: project + funder: + data: + id: 477e1535-bc13-4dce-8f96-94f8eff834fb + type: funder + - id: 2857accb-a7d5-4e5b-9e88-61894364b2f1 + type: investment + attributes: + amount: '98.63' + year_invested: 2022 + initial_funded_year: 2023 + funding_type: general_operating_support + funding_type_other: Placeat commodi libero et. + areas: + - fermentation + - soil_measurement_and_technology + areas_other: Placeat commodi libero et. + grant_duration: one_year + number_of_grant_years: 1 + demographics: + - no_specific_focus + - other + demographics_other: Placeat commodi libero et. + capital_type: other + capital_type_other: Placeat commodi libero et. + submitting_organization_contact_name: Msgr. Genaro Cronin + privacy: all + relationships: + project: + data: + id: 33061fac-f919-441a-859e-8cf8d41fbd19 + type: project + funder: + data: + id: 477e1535-bc13-4dce-8f96-94f8eff834fb + type: funder + - id: 96d94fef-73bf-4553-8ff3-4a7ae3fda1d1 + type: investment + attributes: + amount: '99.39' + year_invested: 2023 + initial_funded_year: 2024 + funding_type: media_and_communications + funding_type_other: Et quaerat omnis veniam. + areas: + - agroforestry + - education_future_farmers_young_farmers + areas_other: Et quaerat omnis veniam. + grant_duration: other + number_of_grant_years: 3 + demographics: + - i_dont_know + - no_specific_focus + demographics_other: Et quaerat omnis veniam. + capital_type: other + capital_type_other: Et quaerat omnis veniam. + submitting_organization_contact_name: Raymon Wisoky + privacy: amount_funded_visible_only_to_members + relationships: + project: + data: + id: 5a813fbe-82c9-45e7-9396-44f1e45bb28f + type: project + funder: + data: + id: 477e1535-bc13-4dce-8f96-94f8eff834fb + type: funder + meta: + page: 1 + per_page: 10 + from: 1 + to: 3 + total: 3 + pages: 1 + links: + first: "/api/v1/members/investments?page%5Bsize%5D=10" + self: "/api/v1/members/investments?page%5Bnumber%5D=1&page%5Bsize%5D=10" + last: "/api/v1/members/investments?page%5Bnumber%5D=1&page%5Bsize%5D=10" + schema: + type: object + properties: + data: + type: array + items: + "$ref": "#/components/schemas/investment" + meta: + "$ref": "#/components/schemas/pagination_meta" + nullable: true + links: + "$ref": "#/components/schemas/pagination_links" + nullable: true + post: + summary: Create a new investment for current member + tags: + - Investments + security: + - Bearer: [] + parameters: [] + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: c5c54f2d-cd4b-49e0-811f-b4df029fd933 + type: investment + attributes: + amount: '68.96' + year_invested: 2023 + initial_funded_year: 2022 + funding_type: sponsorship + funding_type_other: Enim repellat pariatur est. + areas: + - land_asset_financing + - capacity_building + areas_other: Enim repellat pariatur est. + grant_duration: multi_year + number_of_grant_years: 4 + demographics: + - hispanic_or_latinx + - other + demographics_other: Enim repellat pariatur est. + capital_type: re_grants + capital_type_other: Enim repellat pariatur est. + submitting_organization_contact_name: Otha Kemmer + privacy: visible_only_to_staff + relationships: + project: + data: + id: 7c49eb7d-d1f3-43c0-b4b4-f5f3ece2fa79 + type: project + funder: + data: + id: 34f98e2c-b84e-434a-addd-f4099ec4dcf6 + type: funder + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/investment" + '422': + description: Invalid attributes + requestBody: + content: + application/json: + schema: + type: object + properties: + amount: + type: number + project_id: + type: string + year_invested: + type: integer + initial_funded_year: + type: integer + funding_type: + type: string + nullable: true + funding_type_other: + type: string + nullable: true + areas: + type: array + items: + type: string + areas_other: + type: string + nullable: true + grant_duration: + type: integer + number_of_grant_years: + type: integer + nullable: true + demographics: + type: array + items: + type: string + nullable: true + demographics_other: + type: string + nullable: true + capital_type: + type: string + capital_type_other: + type: string + nullable: true + submitting_organization_contact_name: + type: string + privacy: + type: string + required: + - amount + - project_id + - year_invested + - initial_funded_year + - areas + - grant_duration + - capital_type + - privacy + "/api/v1/members/investments/{id}": + get: + summary: Show investment details for current member + tags: + - Investments + security: + - Bearer: [] + parameters: + - name: id + in: path + description: Investment ID + required: true + schema: + type: string + - name: fields[investment] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 230a0d68-1f48-410d-980f-dcc304249969 + type: investment + attributes: + amount: '68.96' + year_invested: 2023 + initial_funded_year: 2022 + funding_type: sponsorship + funding_type_other: Enim repellat pariatur est. + areas: + - land_asset_financing + - capacity_building + areas_other: Enim repellat pariatur est. + grant_duration: multi_year + number_of_grant_years: 4 + demographics: + - hispanic_or_latinx + - other + demographics_other: Enim repellat pariatur est. + capital_type: re_grants + capital_type_other: Enim repellat pariatur est. + submitting_organization_contact_name: Otha Kemmer + privacy: visible_only_to_staff + relationships: + project: + data: + id: 982aa747-9d49-4338-960b-211807044024 + type: project + funder: + data: + id: 8a5e87e3-5ffc-407f-8dff-fa4970246f74 + type: funder + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/investment" + put: + summary: Update investment details for current member + tags: + - Investments + security: + - Bearer: [] + parameters: + - name: id + in: path + description: Investment ID + required: true + schema: + type: string + responses: + '403': + description: Cannot update investment of different member + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 46f3de0c-93ea-4499-8487-0ddb36c6b38f + type: investment + attributes: + amount: '100.0' + year_invested: 2020 + initial_funded_year: 2020 + funding_type: sponsorship + funding_type_other: Enim repellat pariatur est. + areas: + - equity_and_justice + areas_other: Enim repellat pariatur est. + grant_duration: one_year + number_of_grant_years: 4 + demographics: + - hispanic_or_latinx + - other + demographics_other: Enim repellat pariatur est. + capital_type: debt + capital_type_other: Enim repellat pariatur est. + submitting_organization_contact_name: Otha Kemmer + privacy: all + relationships: + project: + data: + id: f09010aa-d2cc-48e7-9969-78626907ff87 + type: project + funder: + data: + id: f887ef2a-e9b9-4126-a970-6e2acd6ad39e + type: funder + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/investment" + '422': + description: Invalid attributes + requestBody: + content: + application/json: + schema: + type: object + properties: + amount: + type: number + project_id: + type: string + year_invested: + type: integer + initial_funded_year: + type: integer + funding_type: + type: string + nullable: true + funding_type_other: + type: string + nullable: true + areas: + type: array + items: + type: string + areas_other: + type: string + nullable: true + grant_duration: + type: integer + number_of_grant_years: + type: integer + nullable: true + demographics: + type: array + items: + type: string + nullable: true + demographics_other: + type: string + nullable: true + capital_type: + type: string + capital_type_other: + type: string + nullable: true + submitting_organization_contact_name: + type: string + privacy: + type: string + delete: + summary: Delete investment for current member + tags: + - Investments + security: + - Bearer: [] + parameters: + - name: id + in: path + description: Investment ID + required: true + schema: + type: string + responses: + '403': + description: Cannot delete investment of another user + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + "/api/v1/members/projects": + get: + summary: List all projects for current member + tags: + - Projects + security: + - Bearer: {} + parameters: + - name: page[number] + in: query + description: 'Page number. Default: 1' + required: false + schema: + type: integer + - name: page[size] + in: query + description: 'Per page items. Default: 10' + required: false + schema: + type: integer + - name: disable_pagination + in: query + description: Turn off pagination + required: false + schema: + type: boolean + - name: fields[project] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + - id: 5fe7e1b5-3c86-4b83-a76f-2c5c9c6d9749 + type: project + attributes: + name: Otha Kemmer + description: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + website: http://kutch-spencer.com/moises + leadership_demographics: + - hispanic_or_latinx + - other + leadership_demographics_other: Enim repellat pariatur est. + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/picture.jpg + relationships: + state: + data: + id: 928ed77e-012b-4bcb-90f5-8ce9dacd8e08 + type: subgeographic + country: + data: + id: 15b38aab-a2a1-464d-a0c4-48661f8bb8de + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + - id: f04f56de-7076-472f-ae94-eb70137cdfb1 + type: project + attributes: + name: Otha Kemmer + description: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + website: http://kutch-spencer.com/moises + leadership_demographics: + - hispanic_or_latinx + - other + leadership_demographics_other: Enim repellat pariatur est. + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/picture.jpg + relationships: + state: + data: + id: 928ed77e-012b-4bcb-90f5-8ce9dacd8e08 + type: subgeographic + country: + data: + id: 15b38aab-a2a1-464d-a0c4-48661f8bb8de + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + - id: 2aedc19c-a253-4df1-83ba-f9eb68a40984 + type: project + attributes: + name: Otha Kemmer + description: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + website: http://kutch-spencer.com/moises + leadership_demographics: + - hispanic_or_latinx + - other + leadership_demographics_other: Enim repellat pariatur est. + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxtTUdKaU56UXpaaTB4T0RNMkxUUXlZV1V0WVRRM1lTMDNNakEzWTJVek56SXdZallHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--5663328be7822a4400e90f2a76aee046f9bec35f/picture.jpg + relationships: + state: + data: + id: 928ed77e-012b-4bcb-90f5-8ce9dacd8e08 + type: subgeographic + country: + data: + id: 15b38aab-a2a1-464d-a0c4-48661f8bb8de + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + meta: + page: 1 + per_page: 10 + from: 1 + to: 3 + total: 3 + pages: 1 + links: + first: "/api/v1/members/projects?page%5Bsize%5D=10" + self: "/api/v1/members/projects?page%5Bnumber%5D=1&page%5Bsize%5D=10" + last: "/api/v1/members/projects?page%5Bnumber%5D=1&page%5Bsize%5D=10" + schema: + type: object + properties: + data: + type: array + items: + "$ref": "#/components/schemas/project" + meta: + "$ref": "#/components/schemas/pagination_meta" + nullable: true + links: + "$ref": "#/components/schemas/pagination_links" + nullable: true + post: + summary: Create a project for current member + tags: + - Projects + security: + - Bearer: {} + parameters: [] + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 7be4820b-1183-44fc-b85a-75ec328d43d1 + type: project + attributes: + name: New Project + description: Description + website: https://example.com + leadership_demographics: + - black_or_african_american + - other + leadership_demographics_other: Something specific + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTlRNNVkyWXpOQzFqWm1KakxUUmlNMk10T0dNek15MWhPVEE1TURJd01UVTJObU1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--c832a333eb5451a40f28694563c0afe7b0b92de9/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTlRNNVkyWXpOQzFqWm1KakxUUmlNMk10T0dNek15MWhPVEE1TURJd01UVTJObU1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--c832a333eb5451a40f28694563c0afe7b0b92de9/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTlRNNVkyWXpOQzFqWm1KakxUUmlNMk10T0dNek15MWhPVEE1TURJd01UVTJObU1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--c832a333eb5451a40f28694563c0afe7b0b92de9/picture.jpg + relationships: + state: + data: + id: 724064e9-5ed2-4242-94bd-0709690de847 + type: subgeographic + country: + data: + id: a1145614-847d-4f24-b56d-9b5e44155073 + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/project" + '422': + description: Invalid attributes + content: + application/json: + schema: + "$ref": "#/components/schemas/errors" + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + name: + type: string + description: + type: string + logo: + type: binary + contact_first_name: + type: string + contact_last_name: + type: string + website: + type: string + country_id: + type: integer + state_id: + type: integer + city: + type: string + leadership_demographics_other: + type: string + recipient_legal_status: + type: string + leadership_demographics: + type: array + items: + type: string + required: + - name + - description + - contact_first_name + - contact_last_name + - country_id + - city + - recipient_legal_status + "/api/v1/members/projects/{id}": + get: + summary: Show selected project for current member + tags: + - Projects + security: + - Bearer: {} + parameters: + - name: id + in: path + description: Project ID + required: true + schema: + type: string + - name: fields[project] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: ae6af52e-03cd-46bc-a26e-c79ca0852433 + type: project + attributes: + name: Otha Kemmer + description: Enim repellat pariatur. Earum modi eos. Libero tempora + exercitationem. Qui dolorem quo. + website: http://kutch-spencer.com/moises + leadership_demographics: + - hispanic_or_latinx + - other + leadership_demographics_other: Enim repellat pariatur est. + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxWWpkbE1Ea3daUzFsTm1VMUxUUXhZVFl0T1dJek15MWlORGc1TldGaVlURTVNR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--022741ba15b0212a2537f6f2c0e9c32ca1c6ec5c/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxWWpkbE1Ea3daUzFsTm1VMUxUUXhZVFl0T1dJek15MWlORGc1TldGaVlURTVNR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--022741ba15b0212a2537f6f2c0e9c32ca1c6ec5c/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxWWpkbE1Ea3daUzFsTm1VMUxUUXhZVFl0T1dJek15MWlORGc1TldGaVlURTVNR1lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--022741ba15b0212a2537f6f2c0e9c32ca1c6ec5c/picture.jpg + relationships: + state: + data: + id: fd3f0b31-1979-4544-a542-5ae552da9a7e + type: subgeographic + country: + data: + id: 4f0ce001-47f1-4a61-bb42-6b690919e3f3 + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/project" + '404': + description: Not found + content: + application/json: + schema: + "$ref": "#/components/schemas/errors" + put: + summary: Update selected project for current member + tags: + - Projects + security: + - Bearer: {} + parameters: + - name: id + in: path + description: Project ID + required: true + schema: + type: string + responses: + '403': + description: Cannot update project of different member + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: ca59f467-9eb8-4a71-b2ae-bf426ca80ee1 + type: project + attributes: + name: Updated Project + description: Description + website: https://example.com + leadership_demographics: + - black_or_african_american + - other + leadership_demographics_other: Something specific + areas: [] + demographics: [] + demographics_other: '' + capital_types: [] + capital_type_other: '' + recipient_legal_status: for_profit + logo: + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWkRJMU9XVmhNQzFsWXpWaUxUUTBNamd0T1RGa1pDMHdabVppWVRSaVlUUXpOVElHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--d916d0d8ce0b4ff6bf18f6c9427fa1dbdb8185fe/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWkRJMU9XVmhNQzFsWXpWaUxUUTBNamd0T1RGa1pDMHdabVppWVRSaVlUUXpOVElHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--d916d0d8ce0b4ff6bf18f6c9427fa1dbdb8185fe/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpWkRJMU9XVmhNQzFsWXpWaUxUUTBNamd0T1RGa1pDMHdabVppWVRSaVlUUXpOVElHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--d916d0d8ce0b4ff6bf18f6c9427fa1dbdb8185fe/picture.jpg + relationships: + state: + data: + id: 411707e9-6983-4417-96d3-e1c9bcc9c4b5 + type: subgeographic + country: + data: + id: 8979d1e5-dab6-43c5-8b62-0547d13ce66a + type: subgeographic + subgeographics: + data: [] + subgeographic_ancestors: + data: [] + funders: + data: [] + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/project" + '422': + description: Invalid attributes + content: + application/json: + schema: + "$ref": "#/components/schemas/errors" + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + name: + type: string + description: + type: string + logo: + type: binary + contact_first_name: + type: string + contact_last_name: + type: string + website: + type: string + country_id: + type: integer + state_id: + type: integer + city: + type: string + leadership_demographics_other: + type: string + recipient_legal_status: + type: string + leadership_demographics: + type: array + items: + type: string + delete: + summary: Delete selected project for current member + tags: + - Projects + security: + - Bearer: {} + parameters: + - name: id + in: path + description: Project ID + required: true + schema: + type: string + responses: + '403': + description: Cannot delete project of different member + content: + application/json: + example: + errors: + - title: Unauthorized + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + '422': + description: Project with investments cannot be deleted + content: + application/json: + schema: + "$ref": "#/components/schemas/errors" + "/api/v1/member": + get: + summary: Returns current member + tags: + - Member + security: + - Bearer: {} + parameters: + - name: fields[member] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string + responses: + '403': + description: Forbidden + content: + application/json: + example: + errors: + - title: You are not authorized to access this page. + schema: + "$ref": "#/components/schemas/errors" + '200': + description: success + content: + application/json: + example: + data: + id: 92671194-fd82-4576-bb2e-77f6d902492c + type: member + attributes: + id: 92671194-fd82-4576-bb2e-77f6d902492c + email: admin1@example.com + first_name: Dawna + last_name: Block + created_at: '2024-12-31T16:19:52.398Z' + updated_at: '2024-12-31T16:19:52.398Z' + relationships: + funder: + data: + id: d91daf8b-79cc-43c1-a1bc-e48302ed7a19 + type: funder + projects: + data: + - id: ba015cad-ee8f-4f03-9a87-6464377379f2 + type: project + investments: + data: + - id: 4de32fb6-57f7-43ec-8c90-074d0ebedc11 + type: investment + schema: + type: object + properties: + data: + "$ref": "#/components/schemas/member" put: - summary: Updates a member + summary: Updates a current member tags: - Member security: @@ -1214,6 +2657,18 @@ paths: required: true schema: type: string + - name: fields[member] + in: query + description: Get only required fields. Use comma to separate multiple fields + required: false + schema: + type: string + - name: includes + in: query + description: Include relationships. Use comma to separate multiple fields + required: false + schema: + type: string responses: '403': description: Forbidden @@ -1230,15 +2685,24 @@ paths: application/json: example: data: - id: 4e61eee2-fa1f-4d35-ad6f-d7c4b506502e + id: b18d1ed2-76bb-4195-a00a-2f128d03cf0c type: member attributes: - id: 4e61eee2-fa1f-4d35-ad6f-d7c4b506502e + id: b18d1ed2-76bb-4195-a00a-2f128d03cf0c email: new@email.test first_name: New last_name: Name - created_at: '2024-12-25T15:42:24.087Z' - updated_at: '2024-12-25T15:42:24.090Z' + created_at: '2024-12-31T16:19:52.631Z' + updated_at: '2024-12-31T16:19:52.635Z' + relationships: + funder: + data: + id: 5a629e2c-e92c-450b-84ee-c505de4db37b + type: funder + projects: + data: [] + investments: + data: [] schema: type: object properties: @@ -1271,44 +2735,7 @@ paths: password_confirmation: type: string nullable: true - "/api/v1/members/me": - get: - summary: Returns current member - tags: - - Member - security: - - Bearer: {} - responses: - '403': - description: Forbidden - content: - application/json: - example: - errors: - - title: You are not authorized to access this page. - schema: - "$ref": "#/components/schemas/errors" - '200': - description: success - content: - application/json: - example: - data: - id: 8aa8ed72-daab-41ce-a283-89ab44b935fb - type: member - attributes: - id: 8aa8ed72-daab-41ce-a283-89ab44b935fb - email: admin1@example.com - first_name: Dawna - last_name: Block - created_at: '2024-12-25T15:42:24.182Z' - updated_at: '2024-12-25T15:42:24.182Z' - schema: - type: object - properties: - data: - "$ref": "#/components/schemas/member" - "/api/v1/members/sign_in": + "/api/v1/member/sign_in": post: summary: Returns member access token tags: @@ -1320,7 +2747,7 @@ paths: content: application/json: example: - token: eyJhbGciOiJIUzI1NiJ9.eyJtZW1iZXJfaWQiOiIyOGU0NThhOC00NGJlLTQ2MjYtYjlhNS0xOThhMTU4YjVhNDYiLCJmaXJzdF9uYW1lIjoiRGF3bmEiLCJsYXN0X25hbWUiOiJCbG9jayIsImVtYWlsIjoiYWRtaW4xQGV4YW1wbGUuY29tIiwiZXhwIjoxNzM1NzQ2MTQ0fQ.tezygzFz6ilYdmB5oJe5Gd4j_Ohrh6Y7QZibMTgNxM4 + token: eyJhbGciOiJIUzI1NiJ9.eyJtZW1iZXJfaWQiOiJkZWJlZmQ5NC1jZGIwLTQ4YjgtYjEwNC1iNDk4MTU1NDJiZGEiLCJmaXJzdF9uYW1lIjoiRGF3bmEiLCJsYXN0X25hbWUiOiJCbG9jayIsImVtYWlsIjoiYWRtaW4xQGV4YW1wbGUuY29tIiwiZXhwIjoxNzM2MjY2NzkyfQ.WIMAvV1N7htD4MXIr5f_mIzhF3-lCT-vDDPOHw5HBtQ schema: type: object properties: @@ -1526,7 +2953,7 @@ paths: application/json: example: data: - - id: 752d0d44-9cd7-438c-b7bd-1cff3c51a5cb + - id: c3e4d61e-e106-4754-b532-f6c5d5a0414a type: project attributes: name: Msgr. Genaro Cronin @@ -1557,35 +2984,35 @@ paths: Et quaerat omnis veniam. recipient_legal_status: government_organization logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1T0RabU9UaGxNaTB4TWpCa0xUUXlaRGN0T0RnelpDMHlPRFZsWTJFellUaGhPVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--f214ac4ae870933f6238c2ede062579d5cf49a1e/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1T0RabU9UaGxNaTB4TWpCa0xUUXlaRGN0T0RnelpDMHlPRFZsWTJFellUaGhPVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--f214ac4ae870933f6238c2ede062579d5cf49a1e/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs1T0RabU9UaGxNaTB4TWpCa0xUUXlaRGN0T0RnelpDMHlPRFZsWTJFellUaGhPVEVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--f214ac4ae870933f6238c2ede062579d5cf49a1e/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpTmpKbFpHRTBOUzFtWXpoaUxUUXlaakV0WWpsbU9TMHlOVGswTVdZeE9EUXdZelVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2ad889525c5df89856f8ec589dea390836c977f4/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpTmpKbFpHRTBOUzFtWXpoaUxUUXlaakV0WWpsbU9TMHlOVGswTVdZeE9EUXdZelVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2ad889525c5df89856f8ec589dea390836c977f4/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxpTmpKbFpHRTBOUzFtWXpoaUxUUXlaakV0WWpsbU9TMHlOVGswTVdZeE9EUXdZelVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--2ad889525c5df89856f8ec589dea390836c977f4/picture.jpg relationships: state: data: - id: 5abe98be-434f-431b-873e-cd5abdaf21e6 + id: 95eecaee-32e9-4b31-a336-3d966ee00274 type: subgeographic country: data: - id: 42248f80-e08f-41d7-a45c-198da0777da9 + id: b8518326-7760-4900-a96a-092b7245b1c6 type: subgeographic subgeographics: data: - - id: 011da5e9-cebb-492a-b8ee-507fa234c86e + - id: 49455f50-3e2e-46a5-aeed-5e786d48b28d type: subgeographic subgeographic_ancestors: data: - - id: 011da5e9-cebb-492a-b8ee-507fa234c86e + - id: 49455f50-3e2e-46a5-aeed-5e786d48b28d type: subgeographic - - id: 574a74ae-9a09-408c-9f68-2b1614ea4c5a + - id: 3920a360-da5e-4d72-be3b-c66ccb434730 type: subgeographic funders: data: - - id: 72bcad50-0a36-472d-898b-ad42d7c572c7 + - id: 438d5537-7888-4cac-9f9a-79f4bbbfb71d type: funder - - id: 149efa4c-eb48-40f2-8ece-394e4f0b3585 + - id: 500309fa-7965-4eac-8b32-d029b4c7f9b1 type: funder - - id: b14cc463-ea2e-417f-8c56-67428a0c5a4c + - id: e64c947d-b848-4e2b-b91a-ebd853cc9439 type: project attributes: name: Otha Kemmer @@ -1607,17 +3034,17 @@ paths: capital_type_other: Placeat commodi libero et. recipient_legal_status: for_profit logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/picture.jpg relationships: state: data: - id: ed7529a0-c635-46b1-b6ea-aed6648aad5e + id: 7c1abdc0-2301-4623-ab76-5b10b3ab13d8 type: subgeographic country: data: - id: 5d3cdd83-8d7e-4413-b91d-244d848e2c9a + id: 28ba9ef7-6808-4407-9fb0-ec3b17c9bd28 type: subgeographic subgeographics: data: [] @@ -1625,9 +3052,9 @@ paths: data: [] funders: data: - - id: 2523757d-259d-45b4-94df-d7a1ac997785 + - id: e1682913-335f-4997-bb69-3ff47ceb3917 type: funder - - id: aaca5af3-eef5-47d2-bc89-f57fc99648d9 + - id: dcd6e141-8dc5-49c0-be61-fb4fed41eae4 type: project attributes: name: Otha Kemmer @@ -1645,17 +3072,17 @@ paths: capital_type_other: '' recipient_legal_status: for_profit logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/picture.jpg relationships: state: data: - id: ed7529a0-c635-46b1-b6ea-aed6648aad5e + id: 7c1abdc0-2301-4623-ab76-5b10b3ab13d8 type: subgeographic country: data: - id: 5d3cdd83-8d7e-4413-b91d-244d848e2c9a + id: 28ba9ef7-6808-4407-9fb0-ec3b17c9bd28 type: subgeographic subgeographics: data: [] @@ -1663,7 +3090,7 @@ paths: data: [] funders: data: [] - - id: 98ee8441-ef04-4270-807a-466438e49002 + - id: 8bd9d97c-e12e-4986-a38e-53f591a6fac3 type: project attributes: name: Otha Kemmer @@ -1681,17 +3108,17 @@ paths: capital_type_other: '' recipient_legal_status: for_profit logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TkRjM1lXUXpOeTFrT1dNNExUUTNZMlV0T0dVeU5DMWlORFZqTjJFd1lUTTJaV0lHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--57165b55d25fe7223b7c0cf907d5f24a1f4a567b/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxrT0RNMVlUUm1aUzAyWm1FekxUUXpNV1V0WVdZeE9TMHlNR0UzTkdObU1tVXdNVFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--8a6ca3925461dc0612b11664a09f034df8a12f93/picture.jpg relationships: state: data: - id: ed7529a0-c635-46b1-b6ea-aed6648aad5e + id: 7c1abdc0-2301-4623-ab76-5b10b3ab13d8 type: subgeographic country: data: - id: 5d3cdd83-8d7e-4413-b91d-244d848e2c9a + id: 28ba9ef7-6808-4407-9fb0-ec3b17c9bd28 type: subgeographic subgeographics: data: [] @@ -1763,7 +3190,7 @@ paths: application/json: example: data: - id: 81943c0d-44fe-4dec-bdf7-4ad225db986d + id: 36d88329-6e0c-40f2-a110-541f13724fbd type: project attributes: name: Msgr. Genaro Cronin @@ -1786,31 +3213,31 @@ paths: capital_type_other: Enim repellat pariatur est. recipient_legal_status: for_profit logo: - small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTnpFME5qSm1OQzB3WmpFMExUUTROVEV0WW1JME1TMWlNMlU0Tm1Oa1pHVmtPRFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--e48899ad2f506756d8be7dbc0224865422cad46f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg - medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTnpFME5qSm1OQzB3WmpFMExUUTROVEV0WW1JME1TMWlNMlU0Tm1Oa1pHVmtPRFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--e48899ad2f506756d8be7dbc0224865422cad46f/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg - original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqTnpFME5qSm1OQzB3WmpFMExUUTROVEV0WW1JME1TMWlNMlU0Tm1Oa1pHVmtPRFVHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--e48899ad2f506756d8be7dbc0224865422cad46f/picture.jpg + small: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TW1ObFkySmtZUzFrTlRrekxUUmtNREV0WVdObVlTMW1PVFZtWVRSbE5HVTBPRE1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--76bdeda943b378f1955796ca8d96bbf0ad856803/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERJd01IZ3lNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--8673702c2d856505736727890dcac6a632977811/picture.jpg + medium: http://localhost:4000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TW1ObFkySmtZUzFrTlRrekxUUmtNREV0WVdObVlTMW1PVFZtWVRSbE5HVTBPRE1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--76bdeda943b378f1955796ca8d96bbf0ad856803/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpRERnd01IZzRNREFHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--e82a96c0eabd93d914de4ef37febd98c36e0e275/picture.jpg + original: http://localhost:4000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWs0TW1ObFkySmtZUzFrTlRrekxUUmtNREV0WVdObVlTMW1PVFZtWVRSbE5HVTBPRE1HT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--76bdeda943b378f1955796ca8d96bbf0ad856803/picture.jpg relationships: state: data: - id: 653cecf5-f877-4572-9a8e-40152ca19e6d + id: fdc39467-51a8-49e5-b9c5-518085866624 type: subgeographic country: data: - id: 48535eef-5025-471e-b9ba-263821e389ff + id: 6e1b8957-fb18-48ca-b031-ee5730efd0c9 type: subgeographic subgeographics: data: - - id: 54962130-d04b-4fbb-915d-05c42988e6a9 + - id: 54cbc30c-ab2e-4b61-9f5c-2c4aca173fa2 type: subgeographic subgeographic_ancestors: data: - - id: 54962130-d04b-4fbb-915d-05c42988e6a9 + - id: 54cbc30c-ab2e-4b61-9f5c-2c4aca173fa2 type: subgeographic - - id: f7cc62da-4a42-4e82-bccc-52b3f089f0f0 + - id: 86ec823c-4794-4e71-9e3a-d8f93b1f067d type: subgeographic funders: data: - - id: 164120be-76cb-42c3-9c24-e3cf4b633197 + - id: bb88702c-faee-4cc2-aaa1-60c3adaf6ba3 type: funder schema: type: object @@ -1956,7 +3383,7 @@ paths: content: application/json: example: - token: eyJhbGciOiJIUzI1NiJ9.eyJtZW1iZXJfaWQiOiIxNmNjMTM1ZS03NGNiLTRjNmQtYjYzMS1jNmE3MWQxNmU2NDYiLCJmaXJzdF9uYW1lIjoiRGF3bmEiLCJsYXN0X25hbWUiOiJCbG9jayIsImVtYWlsIjoibWVtYmVyQGV4YW1wbGUuY29tIiwiZXhwIjoxNzM1NzQ2MTQ2fQ.-S2HNIRtgB1dB7JNu8hqVwr__2kxgzFAQn6QbyIXvPk + token: eyJhbGciOiJIUzI1NiJ9.eyJtZW1iZXJfaWQiOiI5OWRjZTk0Yy01MmVlLTQzNTYtYmExZi1lOTcwZWEyNTVhMmUiLCJmaXJzdF9uYW1lIjoiRGF3bmEiLCJsYXN0X25hbWUiOiJCbG9jayIsImVtYWlsIjoibWVtYmVyQGV4YW1wbGUuY29tIiwiZXhwIjoxNzM2MjY2Nzk1fQ.x9V3mzJGGvIxQ7oLv5eqP6KmC5q5VrDUFrqZtV9Jr6Y schema: type: object properties: @@ -2023,35 +3450,35 @@ paths: application/json: example: data: - - id: b3e4f844-c17b-4217-931a-8d166eab67c1 + - id: 88d81ff1-947e-4666-85b1-e9dbca156427 type: subgeographic attributes: name: Canada code: BWA geographic: countries abbreviation: C-BWA - created_at: '2024-12-25T15:42:27.150Z' - updated_at: '2024-12-25T15:42:27.150Z' + created_at: '2024-12-31T16:19:55.520Z' + updated_at: '2024-12-31T16:19:55.520Z' relationships: parent: data: subgeographics: data: - - id: b7afdf47-690d-46bf-b1b6-53ce0b3d54ad + - id: 9b579090-7b92-4a4e-8ec3-2d971f7d6ef1 type: subgeographic - - id: b7afdf47-690d-46bf-b1b6-53ce0b3d54ad + - id: 9b579090-7b92-4a4e-8ec3-2d971f7d6ef1 type: subgeographic attributes: name: Papua New Guinea code: NPL geographic: regions abbreviation: R-NPL - created_at: '2024-12-25T15:42:27.153Z' - updated_at: '2024-12-25T15:42:27.153Z' + created_at: '2024-12-31T16:19:55.524Z' + updated_at: '2024-12-31T16:19:55.524Z' relationships: parent: data: - id: b3e4f844-c17b-4217-931a-8d166eab67c1 + id: 88d81ff1-947e-4666-85b1-e9dbca156427 type: subgeographic subgeographics: data: [] @@ -2097,11 +3524,11 @@ paths: - - 0 - 0 properties: - id: 28c74876-31b7-4e37-9274-d460da546ae0 - code: NPL - name: Papua New Guinea - abbreviation: R-NPL - parent_id: 450d018f-3646-4f77-90e4-e91f0b4d35d0 + id: 13d0731e-aefd-4afc-a25e-cda845d015ed + code: IRL + name: Jamaica + abbreviation: R-IRL + parent_id: e840be88-ae28-48d9-a752-3847da820815 - type: Feature geometry: type: Polygon @@ -2117,11 +3544,11 @@ paths: - - 0 - 0 properties: - id: ea29e7c4-7f84-4382-900a-3e0a061c88c4 - code: IRL - name: Jamaica - abbreviation: R-IRL - parent_id: 450d018f-3646-4f77-90e4-e91f0b4d35d0 + id: 11ae5586-0455-43a7-b0df-485c0370adbb + code: NPL + name: Papua New Guinea + abbreviation: R-NPL + parent_id: e840be88-ae28-48d9-a752-3847da820815 schema: "$ref": "#/components/schemas/subgeographic_geojson" '422': @@ -2298,7 +3725,7 @@ paths: application/json: example: data: - - id: b9eadc6f-b87c-46fe-82a7-866126aa214e + - id: 9c063fef-e601-4b84-9ddf-1fafa9b9de05 type: widget attributes: title: Enim repellat pariatur est. @@ -2310,9 +3737,9 @@ paths: position: 38 description: Enim repellat pariatur. Earum modi eos. Libero tempora exercitationem. Qui dolorem quo. - created_at: '2024-12-25T15:42:27.364Z' - updated_at: '2024-12-25T15:42:27.364Z' - - id: 2e19b121-c5fc-48e9-9801-28b34cd7b075 + created_at: '2024-12-31T16:19:55.770Z' + updated_at: '2024-12-31T16:19:55.770Z' + - id: 7e096688-9017-4545-99a6-4550c1173ced type: widget attributes: title: Placeat commodi libero et. @@ -2324,8 +3751,8 @@ paths: position: 41 description: Placeat commodi libero. Quo recusandae repellat. Sunt commodi tempore. Voluptatem et corrupti. - created_at: '2024-12-25T15:42:27.365Z' - updated_at: '2024-12-25T15:42:27.365Z' + created_at: '2024-12-31T16:19:55.772Z' + updated_at: '2024-12-31T16:19:55.772Z' schema: type: object properties: @@ -2469,7 +3896,7 @@ paths: application/json: example: data: - id: b721fe7e-8839-43a4-bf5c-ba1d234fe206 + id: 3e307f4e-f0d9-48a3-95e7-6a6f1ec0041e type: widget_data attributes: title: Enim repellat pariatur est. @@ -2839,7 +4266,7 @@ components: "$ref": "#/components/schemas/response_relations" subgeographic_ancestors: "$ref": "#/components/schemas/response_relations" - investments: + projects: "$ref": "#/components/schemas/response_relations" required: - id @@ -2978,13 +4405,151 @@ components: "$ref": "#/components/schemas/response_relations" subgeographic_ancestors: "$ref": "#/components/schemas/response_relations" - investments: + funders: "$ref": "#/components/schemas/response_relations" required: - id - type - attributes - relationships + investment: + type: object + properties: + id: + type: string + type: + type: string + attributes: + type: object + properties: + amount: + type: string + year_invested: + type: number + initial_funded_year: + type: number + funding_type: + type: string + enum: + - general_operating_support + - program_or_project_specific + - media_and_communications + - sponsorship + - other + nullable: true + funding_type_other: + type: string + nullable: true + areas: + type: array + items: + type: string + enum: + - equity_and_justice + - food_sovereignty + - rural_economic_health + - climate_change + - grazing + - soil_health + - water + - biodiversity + - land_access + - policy_advocacy + - movement_building + - nutrient_quality_density + - research + - animal_welfare + - aquaculture + - soil_measurement_and_technology + - middle_of_the_supply_chain_infrastructure + - fiber_systems + - toxins_reduction + - media_communications_narrative_building + - technical_assistance_and_business_planning + - regenerative_ag_financing + - true_cost_accounting + - education_youth + - education_future_farmers_young_farmers + - healthy_food_access + - supply_chain_and_market_development + - tribal_nations + - leadership_development + - educating_legislators + - policy_lobbying + - farm_workers + - urban_farming + - regenerative_ag_organizing_networks_or_groups + - sustainable_or_biological_inputs + - on_farm_automation + - farm_equipment + - land_asset_financing + - land_conservation + - land_transition + - fermentation + - alternative_proteins + - agroforestry + - consumer_packaged_goods + - capacity_building + - other + areas_other: + type: string + nullable: true + grant_duration: + type: string + number_of_grant_years: + type: number + nullable: true + demographics: + type: array + items: + type: string + enum: + - black_or_african_american + - indigenous_tribal_nations + - women + - youth + - asian + - hispanic_or_latinx + - lgbtq + - white + - no_specific_focus + - other + - i_dont_know + nullable: true + demographics_other: + type: string + nullable: true + capital_type: + type: string + enum: + - grants + - debt + - equity + - pris + - mris + - re_grants + - forgivable_loans + - guarantees + - other + capital_type_other: + type: string + nullable: true + submitting_organization_contact_name: + type: string + privacy: + type: string + relationships: + type: object + properties: + project: + "$ref": "#/components/schemas/response_relation" + funder: + "$ref": "#/components/schemas/response_relation" + required: + - id + - type + - attributes + - relationships member: type: object properties: @@ -3007,10 +4572,20 @@ components: type: string updated_at: type: string + relationships: + type: object + properties: + funder: + "$ref": "#/components/schemas/response_relation" + projects: + "$ref": "#/components/schemas/response_relations" + investments: + "$ref": "#/components/schemas/response_relations" required: - id - type - attributes + - relationships widget: type: object properties: