Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Implement graphql mutation node for publish regions #1453

Open
Tracked by #997
sudan45 opened this issue Apr 3, 2024 · 1 comment
Open
Tracked by #997

Implement graphql mutation node for publish regions #1453

sudan45 opened this issue Apr 3, 2024 · 1 comment
Assignees

Comments

@sudan45
Copy link
Contributor

sudan45 commented Apr 3, 2024

Problem Statement

The current publish regions feature uses a REST API, but you need it to work with a GraphQL mutation.

Acceptance Criteria

The publish regions feature should function using a GraphQL mutation for creating organizations.

Additional Information

Rest Framework urls

method: POST
url: /api/v1/regions/<region:ID>/publish/
request payload: {}
response:{
    "id": ID,
    "modifiedAt": Datetime,
    "modifiedBy": ID,
    "createdByName": str,
    "modifiedByName": str,
    "versionId": ID,
    "adminLevels": [
        {
            "id": ID,
            "title": str,
            "level": int,
            "nameProp":str,
            "codeProp": str,
            "parentNameProp": str,
            "parentCodeProp": str
        }
    ],
    "isPublished": bool,
    "createdAt": datetime,
    "code": str,
    "title": str,
    "public": bool,
    "cacheIndex": int,
    "createdBy": ID
}
@sudan45 sudan45 self-assigned this Apr 4, 2024
@sudan45
Copy link
Contributor Author

sudan45 commented Apr 8, 2024

PR : #1472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant