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

Migrate existing endpoints #12

Open
chrisjsewell opened this issue Jun 2, 2021 · 0 comments
Open

Migrate existing endpoints #12

chrisjsewell opened this issue Jun 2, 2021 · 0 comments

Comments

@chrisjsewell
Copy link
Member

and also the tests (see #4)

from a call to the current API:

{
  "data": {
    "available_endpoints": [
      "calcjobs        GET,HEAD,OPTIONS     /api/v4/calcjobs/<id>/input_files/",
      "calcjobs        GET,HEAD,OPTIONS     /api/v4/calcjobs/<id>/output_files/",
      "computers       GET,HEAD,OPTIONS     /api/v4/computers/",
      "computers       GET,HEAD,OPTIONS     /api/v4/computers/<id>/",
      "computers       GET,HEAD,OPTIONS     /api/v4/computers/page/",
      "computers       GET,HEAD,OPTIONS     /api/v4/computers/page/<int:page>/",
      "computers       GET,HEAD,OPTIONS     /api/v4/computers/projectable_properties/",
      "groups          GET,HEAD,OPTIONS     /api/v4/groups/",
      "groups          GET,HEAD,OPTIONS     /api/v4/groups/<id>/",
      "groups          GET,HEAD,OPTIONS     /api/v4/groups/page/",
      "groups          GET,HEAD,OPTIONS     /api/v4/groups/page/<int:page>/",
      "groups          GET,HEAD,OPTIONS     /api/v4/groups/projectable_properties/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/contents/attributes/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/contents/comments/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/contents/derived_properties/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/contents/extras/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/download/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/incoming/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/incoming/page/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/incoming/page/<int:page>/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/outgoing/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/outgoing/page/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/outgoing/page/<int:page>/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/links/tree/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/repo/contents/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/<id>/repo/list/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/download_formats/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/full_types/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/full_types_count/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/page/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/page/<int:page>/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/projectable_properties/",
      "nodes           GET,HEAD,OPTIONS     /api/v4/nodes/statistics/",
      "processes       GET,HEAD,OPTIONS     /api/v4/processes/<id>/report/",
      "processes       GET,HEAD,OPTIONS     /api/v4/processes/projectable_properties/",
      "querybuilder    GET,HEAD,POST,OPTIONS /api/v4/querybuilder/",
      "server          GET,HEAD,OPTIONS     /api/v4/",
      "server          GET,HEAD,OPTIONS     /api/v4/server/",
      "server          GET,HEAD,OPTIONS     /api/v4/server/endpoints/",
      "users           GET,HEAD,OPTIONS     /api/v4/users/",
      "users           GET,HEAD,OPTIONS     /api/v4/users/<id>/",
      "users           GET,HEAD,OPTIONS     /api/v4/users/page/",
      "users           GET,HEAD,OPTIONS     /api/v4/users/page/<int:page>/",
      "users           GET,HEAD,OPTIONS     /api/v4/users/projectable_properties/"
    ]
  },
  "method": "GET",
  "path": "/api/v4",
  "query_string": "",
  "resource_type": "Info",
  "url": "https://15.188.110.176:5000/api/v4",
  "url_root": "https://15.188.110.176:5000/"
}
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Jul 25, 2024
This endpoint needed to be implemented on the FastAPI side as graphql
does not all dynamic field entries. An implementation on the GraphQL
would require to change the format of the output of download_formats
from the old restapi.

I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Nov 20, 2024
I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12.
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Nov 20, 2024
I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12.
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Nov 20, 2024
I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12.
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Nov 20, 2024
I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12.
agoscinski added a commit to agoscinski/aiida-restapi that referenced this issue Nov 20, 2024
I moved part of the code of aiida.restapi.common.identifiers and
aiida.restapi.common.exceptions to this repo that is required to get all
download formats.

Fixes subpoints of issues aiidateam#69 and aiidateam#12.
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