-
Notifications
You must be signed in to change notification settings - Fork 7
AiiDA REST API migration guide
Leopold Talirz edited this page Jun 7, 2021
·
3 revisions
This page helps AiiDA users migrate API calls between the REST API built into aiida-core
and the GraphQL API of this plugin.
Most of the listed calls are taken from the aiida-core documentation.
- http://localhost:5000/api/v4/server/endpoints => docs link
- http://localhost:5000/api/v4/nodes?id=in=45,56,78
- http://localhost:5000/api/v4/nodes?limit=2&offset=8&orderby=-id
- http://localhost:5000/api/v4/nodes?attributes=true&attributes_filter=pbc1
- http://localhost:5000/api/v4/nodes/full_types
- http://localhost:5000/api/v4/nodes/download_formats
- http://localhost:5000/api/v4/nodes/12f95e1c
- http://localhost:5000/api/v4/nodes/de83b1/links/incoming?limit=2
- http://localhost:5000/api/v4/nodes/de83b1/links/incoming?full_type="data.dict.Dict.|"
- http://localhost:5000/api/v4/nodes/a67fba41/links/outgoing?full_type="data.dict.Dict.|"
- http://localhost:5000/api/v4/nodes/ffe11/contents/attributes
- http://localhost:5000/api/v4/nodes/ffe11/contents/attributes?attributes_filter=append_text,is_local
- http://localhost:5000/api/v4/nodes/ffe11/contents/comments
- http://localhost:5000/api/v4/nodes/ffe11/repo/list
- http://localhost:5000/api/v4/nodes/ffe11/repo/contents?filename="aiida.in"
- http://localhost:5000/api/v4/nodes/fafdsf/download?download_format=xsf
- http://localhost:5000/api/v4/nodes?mtime>=2019-04-23
- http://localhost:5000/api/v4/processes/8b95cd85/report
- http://localhost:5000/api/v4/calcjobs/sffs241j/input_files
- http://localhost:5000/api/v4/computers?limit=3&offset=2&orderby=id
- http://localhost:5000/api/v4/computers/5d490d77
- http://localhost:5000/api/v4/computers/?scheduler_type=in="slurm","pbs"
- http://localhost:5000/api/v4/computers?orderby=+name
- http://localhost:5000/api/v4/computers/page/1?
- http://localhost:5000/api/v4/computers/page/1?perpage=5
- http://localhost:5000/api/v4/computers/page